Advanced types and utility functions for TypeScript.
npm install ts-advanced-typesAdvanced types and utility functions for TypeScript.
```
$ npm install --save ts-advanced-types
See index.ts for full reference.
- Without Remove all properties from T that are assignable to UTypeXOR
- XOR of two types
- Falsy JavaScript falsy typesPrimitiveValidIndexSignature
- JavaScript primitive types accepted as index signaturesPrimitive
- JavaScript primitive non-falsy typesComplex
- JavaScript non-falsy typesFalsyOrLiteral
- JavaScript primitive types, including falsy valuesDocument
- An object made of string keys and non-falsy values. To add new types to values, use the T type parameter.JsonOrString
- A JSON, as a string or as a parsed object or array
- TreeItem A generic treeEmptyConstructorOf
- A type that implements a constructor without argumentsClonableType
- A type that is clonable: it can be instantiated with a partial object
- isFalsyOrSpaces(value) Check if a value is falsy or a string with only spaces, ignoring number 0withoutProps(obj, ...props)
- Clones an object, optionally removing a list of propertiesequals(a, b)
- Checks if two objects are equal using the equals method or strict equalitygetMethods(obj)` List all methods of an object and its prototypes
-