@dldc/stack
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -19,11 +19,12 @@ declare const INTERNAL: unique symbol; | ||
type TKeyProviderFn<T, HasDefault extends boolean, Args extends TArgsBase> = (...args: Args) => IKeyProvider<T, HasDefault>; | ||
interface IKey<T, HasDefault extends boolean = boolean, Args extends TArgsBase = [T]> { | ||
interface IKeyBase<T, HasDefault extends boolean, Args extends TArgsBase = [T]> { | ||
Consumer: IKeyConsumer<T, HasDefault>; | ||
Provider: TKeyProviderFn<T, HasDefault, Args>; | ||
} | ||
type TKey<T, HasDefault extends boolean = false> = IKeyBase<T, HasDefault, [value: T]>; | ||
type TVoidKey<HasDefault extends boolean = false> = IKeyBase<undefined, HasDefault, []>; | ||
declare const Key: { | ||
create: <T>(name: string) => IKey<T, false, [value: T]>; | ||
createWithDefault: <T_1>(name: string, defaultValue: T_1) => IKey<T_1, true, [value: T_1]>; | ||
createEmpty: (name: string) => IKey<undefined, false, [ | ||
]>; | ||
create: <T>(name: string) => TKey<T, false>; | ||
createWithDefault: <T_1>(name: string, defaultValue: T_1) => TKey<T_1, true>; | ||
createEmpty: (name: string) => TVoidKey<false>; | ||
}; | ||
@@ -93,2 +94,2 @@ | ||
export { IKey, IKeyConsumer, IKeyProvider, Key, MissingContextError, Stack, StackCore, TArgsBase, TKeyProviderFn, TStackCoreTuple, TStackCoreValue }; | ||
export { IKeyBase, IKeyConsumer, IKeyProvider, Key, MissingContextError, Stack, StackCore, TArgsBase, TKey, TKeyProviderFn, TStackCoreTuple, TStackCoreValue, TVoidKey }; |
{ | ||
"name": "@dldc/stack", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "A library to create type-safe opaque stacks", | ||
@@ -48,5 +48,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^20.6.3", | ||
"@typescript-eslint/eslint-plugin": "^6.7.2", | ||
"@typescript-eslint/parser": "^6.7.2", | ||
"@types/node": "^20.7.0", | ||
"@typescript-eslint/eslint-plugin": "^6.7.3", | ||
"@typescript-eslint/parser": "^6.7.3", | ||
"@vitest/coverage-v8": "^0.34.5", | ||
@@ -57,3 +57,3 @@ "auto-changelog": "^2.4.0", | ||
"prettier": "^3.0.3", | ||
"release-it": "^16.1.5", | ||
"release-it": "^16.2.0", | ||
"rimraf": "^5.0.1", | ||
@@ -60,0 +60,0 @@ "tsup": "^7.2.0", |
Sorry, the diff of this file is not supported yet
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
26488
634