UNPKG

@salte-auth/salte-auth

Version:
21 lines (20 loc) 1.01 kB
export declare class Common { static includes(source: any[] | string, value: any): boolean; static forEach<T>(source: T[], cb: (value: T, key: number | string) => void): void; static forEach<T extends Record<string, unknown>>(source: T, cb: (item: any, key: number | string) => void): void; static find<T>(source: T[], cb: (value: T, key: any) => boolean): T; static find<T extends Record<string, unknown>>(source: T, cb: (item: any, key: any) => boolean): any; static assign(target: any, ...sources: any[]): any; static defaults(target: any, ...sources: any[]): any; static isObject(value: any): boolean; static iframe({ url, redirectUrl, visible }: Common.IFrameOptions): Promise<any>; private static removeIframe; static debounce(identifier: string, callback: () => void, timeout?: number): void; } export declare namespace Common { interface IFrameOptions { url: string; redirectUrl: string; visible?: boolean; } }