Updates
This commit is contained in:
@@ -30,7 +30,8 @@ export type ApiGetParams = Param;
|
||||
* # Make a get request to Datasquirel API
|
||||
*/
|
||||
export default async function get<
|
||||
T extends { [k: string]: any } = { [k: string]: any }
|
||||
T extends { [k: string]: any } = { [k: string]: any },
|
||||
R extends any = any
|
||||
>({
|
||||
key,
|
||||
db,
|
||||
@@ -40,7 +41,7 @@ export default async function get<
|
||||
user_id,
|
||||
debug,
|
||||
forceLocal,
|
||||
}: Param<T>): Promise<GetReturn> {
|
||||
}: Param<T>): Promise<GetReturn<R>> {
|
||||
const grabedHostNames = grabHostNames();
|
||||
const { host, port, scheme } = grabedHostNames;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user