diff --git a/api/typings.ts b/api/typings.ts new file mode 100644 index 00000000..b0cd0de8 --- /dev/null +++ b/api/typings.ts @@ -0,0 +1 @@ +export {SharedAppConfig} from '../typings/nodekit'; diff --git a/typings/nodekit.d.ts b/typings/nodekit.d.ts index 9cd533f7..433ddddd 100644 --- a/typings/nodekit.d.ts +++ b/typings/nodekit.d.ts @@ -1,24 +1,26 @@ import {CtxInfo} from '../src/types/ctx'; import {FeaturesConfig} from '../src/components/features/types'; -declare module '@gravity-ui/nodekit' { - interface AppConfig { - features: FeaturesConfig; - dynamicFeaturesEndpoint?: string; - multitenant: boolean; - dlsEnabled: boolean; - tenantIdOverride?: string; +export interface SharedAppConfig { + features: FeaturesConfig; + dynamicFeaturesEndpoint?: string; - accessServiceEnabled: boolean; - accessBindingsServiceEnabled: boolean; + multitenant: boolean; + dlsEnabled: boolean; + tenantIdOverride?: string; - masterToken: string[]; + accessServiceEnabled: boolean; + accessBindingsServiceEnabled: boolean; - zitadelEnabled: boolean; - zitadelUri: string; - clientId: string; - clientSecret: string; - } + masterToken: string[]; + + zitadelEnabled?: boolean; + zitadelUri?: string; + clientId?: string; + clientSecret?: string; +} +declare module '@gravity-ui/nodekit' { + export interface AppConfig extends SharedAppConfig {} interface AppDynamicConfig { features?: FeaturesConfig;