Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
24
node_modules/json-schema-to-ts/lib/utils/extends.d.ts
generated
vendored
Normal file
24
node_modules/json-schema-to-ts/lib/utils/extends.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* Returns `true` if type `A` extends type `B`, `false` if not
|
||||
*
|
||||
* @param A Type
|
||||
* @param B Type
|
||||
* @return Boolean
|
||||
*/
|
||||
export declare type DoesExtend<A, B> = A extends B ? true : false;
|
||||
declare type ArrayKeys = keyof [];
|
||||
/**
|
||||
* Returns `true` if type is object, `false` if not (excludes arrays)
|
||||
*
|
||||
* @param T Type
|
||||
* @return Boolean
|
||||
*/
|
||||
export declare type IsObject<T> = T extends object ? ArrayKeys extends Extract<keyof T, ArrayKeys> ? false : true : false;
|
||||
/**
|
||||
* Returns `true` if type is array, `false` if not (excludes objects)
|
||||
*
|
||||
* @param T Type
|
||||
* @return Boolean
|
||||
*/
|
||||
export declare type IsArray<T> = T extends object ? ArrayKeys extends Extract<keyof T, ArrayKeys> ? true : false : false;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue