mirror of https://github.com/abpframework/abp.git
1 changed files with 9 additions and 0 deletions
@ -1,4 +1,13 @@ |
|||||
import { TemplateRef, Type } from '@angular/core'; |
import { TemplateRef, Type } from '@angular/core'; |
||||
|
|
||||
|
export type DeepPartial<T> = { |
||||
|
[P in keyof T]?: T[P] extends Serializable ? DeepPartial<T[P]> : T[P]; |
||||
|
}; |
||||
|
|
||||
|
type Serializable = Record< |
||||
|
string | number | symbol, |
||||
|
string | number | boolean | Record<string | number | symbol, any> |
||||
|
>; |
||||
|
|
||||
export type InferredInstanceOf<T> = T extends Type<infer U> ? U : never; |
export type InferredInstanceOf<T> = T extends Type<infer U> ? U : never; |
||||
export type InferredContextOf<T> = T extends TemplateRef<infer U> ? U : never; |
export type InferredContextOf<T> = T extends TemplateRef<infer U> ? U : never; |
||||
|
|||||
Loading…
Reference in new issue