@jitsu/js 1.11.0-beta.0 → 1.11.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ export type InterfaceWrapper<T> = {
2
+ get(): WithAsyncMethods<T>;
3
+ loaded(instance: T): any;
4
+ };
5
+ type WithAsyncMethods<T> = {
6
+ [K in keyof T]: T[K] extends (...args: infer A) => infer R ? (...args: A) => R extends Promise<any> ? R : Promise<R> : T[K];
7
+ };
8
+ export declare function delayMethodExec<T>(methods: Record<keyof T, boolean>): InterfaceWrapper<T>;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ export type ScriptOptions = {
2
+ attributes?: Record<string, string>;
3
+ www?: boolean;
4
+ js?: boolean;
5
+ min?: boolean;
6
+ query?: string;
7
+ };
8
+ export declare function loadScript(src: string, options?: ScriptOptions): Promise<HTMLScriptElement>;
package/dist/tlds.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export declare const publicSuffixes: string[];
2
+ export declare const publicSuffixesMap: Record<string, boolean>;
3
+ export declare function getTopLevelDomain(hostname: string): string;
@@ -0,0 +1,3 @@
1
+ declare const jitsuVersion: string;
2
+ declare const jitsuLibraryName = "@jitsu/js";
3
+ export { jitsuVersion, jitsuLibraryName };