Browse Source

Merge pull request #5310 from abpframework/fix/5238

Used an intersection type in ApiConfig for strict null checks
pull/5326/head
Bunyamin Coskuner 6 years ago
committed by GitHub
parent
commit
57eeae915f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      npm/ng-packs/packages/core/src/lib/models/config.ts

7
npm/ng-packs/packages/core/src/lib/models/config.ts

@ -22,11 +22,12 @@ export namespace Config {
logoUrl?: string; logoUrl?: string;
} }
export interface ApiConfig { export type ApiConfig = {
[key: string]: string; [key: string]: string;
rootNamespace?: string;
url: string; url: string;
} } & Partial<{
rootNamespace: string;
}>;
export interface Apis { export interface Apis {
[key: string]: ApiConfig; [key: string]: ApiConfig;

Loading…
Cancel
Save