@salte-auth/salte-auth
Version:
Authentication for the modern web!
11 lines (10 loc) • 429 B
TypeScript
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;