@myparcel/ts-utils
Advanced tools
Comparing version 1.11.0 to 1.12.0
@@ -38,2 +38,12 @@ /** | ||
/** | ||
* Makes a type nullable or be undefined. | ||
*/ | ||
type Maybe<T> = T | null | undefined; | ||
/** | ||
* A type for an instantiable class. | ||
*/ | ||
type Newable<T> = new (...args: any[]) => T; | ||
/** | ||
* Allow a single value or an array of values. | ||
@@ -79,7 +89,2 @@ */ | ||
/** | ||
* Makes a type nullable or be undefined. | ||
*/ | ||
type Maybe<T> = T | null | undefined; | ||
/** | ||
* Inverts a map type so that the values become the keys and the keys become the values. | ||
@@ -125,2 +130,2 @@ */ | ||
export { ArrayWithOneOrMore, ExtractRecord, ExtractRecordKeys, MakeOptional, Maybe, OneOrMore, PromiseOr, ReadonlyOr, RecursivePartial, RecursiveRequired, Replace, RequireOnly, ResolvePromise, ReverseMap, asyncEvery, asyncSome, isEnumValue, isInArray, isOfType, isUndefined, objectIsEqual, partitionArray, removePropertiesWith, toArray }; | ||
export { ArrayWithOneOrMore, ExtractRecord, ExtractRecordKeys, MakeOptional, Maybe, Newable, OneOrMore, PromiseOr, ReadonlyOr, RecursivePartial, RecursiveRequired, Replace, RequireOnly, ResolvePromise, ReverseMap, asyncEvery, asyncSome, isEnumValue, isInArray, isOfType, isUndefined, objectIsEqual, partitionArray, removePropertiesWith, toArray }; |
{ | ||
"name": "@myparcel/ts-utils", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"description": "TypeScript utilities", | ||
@@ -26,3 +26,4 @@ "keywords": [ | ||
"test": "vitest", | ||
"test:run": "vitest run" | ||
"test:run": "vitest run", | ||
"test:types": "tsc -p src/__tests__/types/tsconfig.test.json" | ||
}, | ||
@@ -29,0 +30,0 @@ "lint-staged": { |
13582
284