UNPKG

@salte-auth/salte-auth

Version:
11 lines (10 loc) 429 B
import { SalteAuth } from '../salte-auth'; export declare type SalteAuthMixedIn<T = { auth: SalteAuth; }> = new (...args: any[]) => T; export declare type Constructor<T = { requestUpdate?(field: string): void; }> = new (...args: any[]) => T; export declare function AuthMixinGenerator(auth: SalteAuth): <TBase extends Constructor<{ requestUpdate?(field: string): void; }>>(Base: TBase) => SalteAuthMixedIn;