Comparing version 1.0.2 to 1.0.3
type NestedArray = Array<PrimitiveOrNested> | ReadonlyArray<PrimitiveOrNested>; | ||
type NestedObject = { | ||
[key: string | number]: PrimitiveOrNested; | ||
[key in string | number]?: PrimitiveOrNested; | ||
}; | ||
type PrimitiveOrNested = boolean | string | number | undefined | null | bigint | Date | NestedObject | NestedArray; | ||
type Primitive = boolean | string | number | undefined | null | bigint | Date; | ||
type PrimitiveOrNested = Primitive | NestedObject | NestedArray; | ||
declare const toKey: <T extends PrimitiveOrNested>(value: T) => string; | ||
export { type NestedArray, type NestedObject, type PrimitiveOrNested, toKey as default }; | ||
export { type NestedArray, type NestedObject, type Primitive, type PrimitiveOrNested, toKey as default }; |
{ | ||
"name": "keyweaver", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Andrii Dubetskyi", | ||
@@ -5,0 +5,0 @@ "description": "Generate unique string keys from nested data structures", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11017
72