Web: Login: fixed types
This commit is contained in:
parent
f982793225
commit
ba23703c53
2
packages/login/index.d.ts
vendored
2
packages/login/index.d.ts
vendored
@ -108,4 +108,6 @@ declare global {
|
||||
type HTMLElementEvent<T extends HTMLElement> = Event & {
|
||||
target: T;
|
||||
};
|
||||
|
||||
type TFuncType = (key: string) => string;
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ interface IParsedConfig extends Object {
|
||||
}
|
||||
interface ILoginRequest extends Request {
|
||||
i18n?: I18next | I18nextProviderProps;
|
||||
t?: (str: string) => string;
|
||||
t?: TFuncType;
|
||||
}
|
||||
type timeoutType = ReturnType<typeof setTimeout>;
|
||||
interface IAcceptLanguage extends Object {
|
||||
|
@ -11,7 +11,7 @@ type Template = (
|
||||
initialI18nStoreASC: object,
|
||||
initialLanguage: string,
|
||||
assets: assetsType,
|
||||
t?: (str: string) => string
|
||||
t?: TFuncType
|
||||
) => string;
|
||||
|
||||
const template: Template = (
|
||||
|
Loading…
Reference in New Issue
Block a user