Comparing version 3.0.2 to 3.0.3
@@ -18,2 +18,2 @@ import { Props, ModelSchema } from "./types"; | ||
*/ | ||
export default function createSimpleSchema<T extends object>(props: Props): ModelSchema<T>; | ||
export default function createSimpleSchema<T extends object>(props: Props<T>): ModelSchema<T>; |
@@ -1315,2 +1315,4 @@ /** | ||
* | ||
* For `Map`s which are not string-keyed, check out `mapAsArray`. | ||
* | ||
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers | ||
@@ -1317,0 +1319,0 @@ */ |
@@ -1321,2 +1321,4 @@ (function (global, factory) { | ||
* | ||
* For `Map`s which are not string-keyed, check out `mapAsArray`. | ||
* | ||
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers | ||
@@ -1323,0 +1325,0 @@ */ |
@@ -7,4 +7,6 @@ import { PropSchema, AdditionalPropArgs } from "../api/types"; | ||
* | ||
* For `Map`s which are not string-keyed, check out `mapAsArray`. | ||
* | ||
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers | ||
*/ | ||
export default function map(propSchema: PropSchema, additionalArgs?: AdditionalPropArgs): PropSchema; |
{ | ||
"name": "serializr", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Serialize and deserialize complex object graphs to JSON", | ||
@@ -5,0 +5,0 @@ "main": "lib/serializr.umd.js", |
@@ -407,3 +407,3 @@ # Serializr | ||
See https://serializr.github.io/serializr/docs/functions/subSchema.html for more information. | ||
See https://mobxjs.github.io/serializr/functions/subSchema.html for more information. | ||
@@ -410,0 +410,0 @@ # Future ideas |
@@ -19,3 +19,3 @@ import { Props, ModelSchema } from "./types"; | ||
*/ | ||
export default function createSimpleSchema<T extends object>(props: Props): ModelSchema<T> { | ||
export default function createSimpleSchema<T extends object>(props: Props<T>): ModelSchema<T> { | ||
return { | ||
@@ -22,0 +22,0 @@ factory: function () { |
@@ -18,2 +18,4 @@ import { | ||
* | ||
* For `Map`s which are not string-keyed, check out `mapAsArray`. | ||
* | ||
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers | ||
@@ -20,0 +22,0 @@ */ |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
457303
71
5952