Add .d.ts files
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
declare function _exports({ clientId, redirectUrl, setLoading, scopes }: {
|
||||
clientId: string;
|
||||
redirectUrl: string;
|
||||
setLoading?: (arg0: boolean) => void;
|
||||
scopes?: string[];
|
||||
}): void;
|
||||
export = _exports;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
declare function _exports({ clientId, element, triggerPrompt, readyStateDispatch, }: {
|
||||
clientId: string;
|
||||
element: HTMLElement;
|
||||
triggerPrompt: boolean;
|
||||
readyStateDispatch?: () => void;
|
||||
}): Promise<boolean>;
|
||||
export = _exports;
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
declare function _exports(params: object | null): Promise<boolean>;
|
||||
export = _exports;
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
export = clientFetch;
|
||||
declare function clientFetch(url: string, options?: import("../../package-shared/types").FetchApiOptions, csrf?: boolean): Promise<any>;
|
||||
declare namespace clientFetch {
|
||||
export { clientFetch as fetchApi };
|
||||
}
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
export namespace media {
|
||||
export { imageInputToBase64 };
|
||||
export { imageInputFileToBase64 };
|
||||
export { inputFileToBase64 };
|
||||
}
|
||||
export namespace auth {
|
||||
export namespace google {
|
||||
export { getAccessToken };
|
||||
}
|
||||
export namespace github {
|
||||
export { getGithubAccessToken as getAccessToken };
|
||||
}
|
||||
export { logout };
|
||||
}
|
||||
export namespace fetch {
|
||||
export { fetchApi };
|
||||
export { clientFetch };
|
||||
}
|
||||
import imageInputToBase64 = require("./media/imageInputToBase64");
|
||||
import imageInputFileToBase64 = require("./media/imageInputFileToBase64");
|
||||
import inputFileToBase64 = require("./media/inputFileToBase64");
|
||||
import getAccessToken = require("./auth/google/getAccessToken");
|
||||
import getGithubAccessToken = require("./auth/github/getAccessToken");
|
||||
import logout = require("./auth/logout");
|
||||
import { fetchApi } from "./fetch";
|
||||
import clientFetch = require("./fetch");
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
declare function _exports({ imageInputFile, maxWidth, imagePreviewNode, }: {
|
||||
imageInputFile: {
|
||||
name: string;
|
||||
};
|
||||
maxWidth?: number;
|
||||
imagePreviewNode?: HTMLImageElement;
|
||||
}): Promise<any>;
|
||||
export = _exports;
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
declare namespace _exports {
|
||||
export { FunctionReturn };
|
||||
}
|
||||
declare function _exports({ imageInput, maxWidth, mimeType, }: {
|
||||
imageInput: HTMLInputElement;
|
||||
maxWidth?: number;
|
||||
mimeType?: [string];
|
||||
}): Promise<FunctionReturn>;
|
||||
export = _exports;
|
||||
type FunctionReturn = {
|
||||
imageBase64: string;
|
||||
imageBase64Full: string;
|
||||
imageName: string;
|
||||
};
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
declare namespace _exports {
|
||||
export { FunctionReturn };
|
||||
}
|
||||
declare function _exports({ inputFile, allowedRegex }: {
|
||||
inputFile: {
|
||||
name: string;
|
||||
size: number;
|
||||
type: string;
|
||||
};
|
||||
allowedRegex?: RegExp;
|
||||
}): Promise<FunctionReturn>;
|
||||
export = _exports;
|
||||
type FunctionReturn = {
|
||||
fileBase64: string;
|
||||
fileBase64Full: string;
|
||||
fileName: string;
|
||||
fileSize: number;
|
||||
fileType: string;
|
||||
};
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
declare function _exports(): {} | null;
|
||||
export = _exports;
|
||||
Reference in New Issue
Block a user