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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
3 deletions
-
npm/ng-packs/packages/core/src/lib/models/config.ts
|
|
|
@ -22,11 +22,12 @@ export namespace Config { |
|
|
|
logoUrl?: string; |
|
|
|
} |
|
|
|
|
|
|
|
export interface ApiConfig { |
|
|
|
export type ApiConfig = { |
|
|
|
[key: string]: string; |
|
|
|
rootNamespace?: string; |
|
|
|
url: string; |
|
|
|
} |
|
|
|
} & Partial<{ |
|
|
|
rootNamespace: string; |
|
|
|
}>; |
|
|
|
|
|
|
|
export interface Apis { |
|
|
|
[key: string]: ApiConfig; |
|
|
|
|