@lifaon/class-factory
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@lifaon/class-factory", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Description", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -19,2 +19,5 @@ // kind of any, but different => sometimes better for inference | ||
// converts the properties of T (object) as writable (removes readonly) | ||
export type Writeable<T> = { -readonly [P in keyof T]: T[P] }; | ||
// removes from T (object) the properties K (tuple) | ||
@@ -21,0 +24,0 @@ export type ExcludeProperties<T, K extends (keyof T)[]> = Pick<T, Exclude<keyof T, TupleTypes<K>>>; |
@@ -11,2 +11,5 @@ export declare type Any = boolean | string | number | object | symbol | null | undefined | any[]; | ||
export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
export declare type Writeable<T> = { | ||
-readonly [P in keyof T]: T[P]; | ||
}; | ||
export declare type ExcludeProperties<T, K extends (keyof T)[]> = Pick<T, Exclude<keyof T, TupleTypes<K>>>; | ||
@@ -13,0 +16,0 @@ export declare type RequireProperties<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
463451
4658