From c2ea6d394ee7b9c336b4dd5510cab80942c272cb Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Fri, 7 Sep 2018 13:33:50 -0700 Subject: [PATCH] Update README to `schemaFromJSON` method --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1b778d6..4560460 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ npm install standardschema --save ## Usage ```ts -import { fromJSON } from 'standardschema' +import { schemaFromJSON } from 'standardschema' -const model = fromJSON({ +const schema = schemaFromJSON({ '@type': 'Object', 'properties': [ { @@ -29,7 +29,7 @@ const model = fromJSON({ ] }) -model.isAssignable(fromJSON({ '@type': 'Integer' })) //=> false +schema.isAssignable(schemaFromJSON({ '@type': 'Integer' })) //=> false ``` ## License