@lonelyplanet/dotcom-core
Version:
This package is meant to house some of our more common UI and shared libs across dotcom applications.
59 lines (51 loc) • 1.1 kB
text/typescript
export interface IRenderOptions {
component: string,
el?: Element,
props?: Object,
};
export interface IRequire {
(id: string): any,
}
export interface IRenderer {
render(options: IRenderOptions): any;
}
export interface ICore {
render(options: IRenderOptions): any;
}
export interface IAuthOptionsDefaults {
host: string;
options: {
clientId: string;
scope: string[];
}
}
export interface IAuthOptions {
host?: string;
clientId?: string;
redirectUri?: string;
scope?: string[];
targetLinkUri?: string;
};
export interface IAuthRequestOptions {
clientId?: string,
scope?: string[],
responseType?: string,
redirectUri?: string,
state?: string,
nonce?: string,
display?: string,
prompt?: string[],
uiLocales?: string[],
claims?: Object,
claimsLocales?: string[],
codeChallenge?: string,
codeChallengeMethod?: string,
loginHint?: string,
idTokenHint?: string,
targetLinkUri?: string,
authMethod?: string,
}
export interface IAuthRequestParams {
host?: string,
options?: IAuthRequestOptions,
}