Comparing version 3.0.0 to 3.0.1
@@ -20,3 +20,4 @@ declare const INTERNAL: unique symbol; | ||
} | ||
type KeyProviderFn<T, HasDefault extends boolean> = (...args: undefined extends T ? [] : [value: T]) => KeyProvider<T, HasDefault>; | ||
type MaybeParam<T> = [T] extends [undefined] ? [value?: undefined] : [value: T]; | ||
type KeyProviderFn<T, HasDefault extends boolean> = (...args: MaybeParam<T>) => KeyProvider<T, HasDefault>; | ||
interface IKey<T, HasDefault extends boolean = boolean> { | ||
@@ -95,2 +96,2 @@ Consumer: KeyConsumer<T, HasDefault>; | ||
export { IKey, Key, KeyConsumer, KeyProvider, KeyProviderFn, MissingContextError, Staack, StaackCore, StaackCoreTuple, StaackCoreValue }; | ||
export { IKey, Key, KeyConsumer, KeyProvider, KeyProviderFn, MaybeParam, MissingContextError, Staack, StaackCore, StaackCoreTuple, StaackCoreValue }; |
{ | ||
"name": "staack", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A library to create type-safe opaque stacks", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
23463
651