@rest-hooks/normalizr
Advanced tools
Comparing version 6.0.0-beta.8 to 6.0.0-beta.9
@@ -6,2 +6,11 @@ # Change Log | ||
## [6.0.0-beta.9](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/normalizr@6.0.0-beta.8...@rest-hooks/normalizr@6.0.0-beta.9) (2020-05-19) | ||
### 🐛 Bug Fix | ||
* Types need to be exported ([0bf5aac](https://github.com/coinbase/rest-hooks/commit/0bf5aac7d41ec8f4795d77f03eba2d426765aff7)) | ||
## [6.0.0-beta.8](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/normalizr@6.0.0-beta.7...@rest-hooks/normalizr@6.0.0-beta.8) (2020-05-19) | ||
@@ -8,0 +17,0 @@ |
@@ -1,3 +0,13 @@ | ||
import { Schema, AbstractInstanceType } from './types'; | ||
import Entity from './entities/Entity'; | ||
import { | ||
Schema, | ||
AbstractInstanceType, | ||
Normalize, | ||
NormalizeNullable, | ||
Denormalize, | ||
DenormalizeNullable, | ||
DenormalizeObject, | ||
DenormalizeNullableObject, | ||
NormalizeObject, | ||
NormalizedNullableObject, | ||
} from './types'; | ||
@@ -4,0 +14,0 @@ export type StrategyFunction<T> = (value: any, parent: any, key: string) => T; |
@@ -13,12 +13,12 @@ import type { default as schema, EntityInterface } from './schema'; | ||
} : never; | ||
declare type DenormalizeObject<S extends Record<string, any>> = { | ||
export declare type DenormalizeObject<S extends Record<string, any>> = { | ||
[K in keyof S]: S[K] extends Schema ? Denormalize<S[K]> : S[K]; | ||
}; | ||
declare type DenormalizeNullableObject<S extends Record<string, any>> = { | ||
export declare type DenormalizeNullableObject<S extends Record<string, any>> = { | ||
[K in keyof S]: S[K] extends Schema ? DenormalizeNullable<S[K]> : S[K]; | ||
}; | ||
declare type NormalizeObject<S extends Record<string, any>> = { | ||
export declare type NormalizeObject<S extends Record<string, any>> = { | ||
[K in keyof S]: S[K] extends Schema ? Normalize<S[K]> : S[K]; | ||
}; | ||
declare type NormalizedNullableObject<S extends Record<string, any>> = { | ||
export declare type NormalizedNullableObject<S extends Record<string, any>> = { | ||
[K in keyof S]: S[K] extends Schema ? NormalizeNullable<S[K]> : S[K]; | ||
@@ -67,3 +67,2 @@ }; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@rest-hooks/normalizr", | ||
"version": "6.0.0-beta.8", | ||
"version": "6.0.0-beta.9", | ||
"description": "Normalizes and denormalizes JSON according to schema for Redux and Flux applications", | ||
@@ -62,3 +62,3 @@ "homepage": "https://github.com/coinbase/rest-hooks/tree/master/packages/normalizr#readme", | ||
}, | ||
"gitHead": "5a155052d4208ac82c54084d7cd7cb3d967bce1c" | ||
"gitHead": "78eb3293bbb8123fa8d6f0b910272e3894a452f7" | ||
} |
Sorry, the diff of this file is not supported yet
198629
3399