type-fest
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -10,2 +10,3 @@ // Basic | ||
export {RequireAtLeastOne} from './source/require-at-least-one'; | ||
export {ReadonlyDeep} from './source/readonly-deep'; | ||
export {LiteralUnion} from './source/literal-union'; | ||
@@ -12,0 +13,0 @@ |
{ | ||
"name": "type-fest", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "A collection of essential TypeScript types", | ||
@@ -35,5 +35,5 @@ "license": "(MIT OR CC0-1.0)", | ||
"@sindresorhus/tsconfig": "^0.3.0", | ||
"@typescript-eslint/eslint-plugin": "^1.5.0", | ||
"eslint-config-xo-typescript": "^0.10.0", | ||
"tsd": "^0.7.2", | ||
"@typescript-eslint/eslint-plugin": "^1.8.0", | ||
"eslint-config-xo-typescript": "^0.11.0", | ||
"tsd": "^0.7.3", | ||
"xo": "^0.24.0" | ||
@@ -40,0 +40,0 @@ }, |
@@ -70,3 +70,4 @@ <div align="center"> | ||
- [`RequireAtLeastOne`](source/require-at-least-one.d.ts) - Create a type that requires at least one of the given properties. | ||
- [`LiteralUnion`](source/literal-union.d.ts) - Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union. Workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). | ||
- [`ReadonlyDeep`](source/readonly-deep.d.ts) - Create a deeply immutable version of a `object`/`Map`/`Set`/`Array` type. | ||
- [`LiteralUnion`](source/literal-union.d.ts) - Create a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union. Workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). | ||
@@ -82,3 +83,5 @@ ### Miscellaneous | ||
- [`Diff` and `Spread`](https://github.com/sindresorhus/type-fest/pull/7) - The PR author didn't provide any real-world use-cases and the PR went stale. If you think this type is useful, provide some real-world use-cases and we might reconsider. | ||
## Tips | ||
@@ -85,0 +88,0 @@ |
@@ -11,3 +11,4 @@ // TODO: This can just be `export type Primitive = not object` when the `not` keyword is out. | ||
| boolean | ||
| symbol; | ||
| symbol | ||
| bigint; | ||
@@ -31,3 +32,5 @@ /** | ||
| Float32Array | ||
| Float64Array; | ||
| Float64Array | ||
| BigInt64Array | ||
| BigUint64Array; | ||
@@ -34,0 +37,0 @@ /** |
@@ -22,2 +22,2 @@ /** | ||
-readonly [KeyType in keyof ObjectType]: ObjectType[KeyType]; | ||
} | ||
}; |
@@ -205,3 +205,3 @@ import {LiteralUnion} from '..'; | ||
[scriptName: string]: string; | ||
} | ||
}; | ||
@@ -208,0 +208,0 @@ /** |
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
26832
13
659
117