Browse Source
Merge pull request #6916 from abpframework/fix/deep-partial-node
add Node interface to Partible type control
pull/6917/head
Levent Arman Özak
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/models/utility.ts
|
|
|
@ -7,7 +7,7 @@ export type DeepPartial<T> = Partible<T> extends never |
|
|
|
[K in keyof T]?: DeepPartial<T[K]>; |
|
|
|
}; |
|
|
|
|
|
|
|
type Partible<T> = T extends Primitive | Array<any> |
|
|
|
type Partible<T> = T extends Primitive | Array<any> | Node |
|
|
|
? never |
|
|
|
: { |
|
|
|
[K in keyof T]: T[K] extends Function ? never : T[K]; |
|
|
|
|