Skip to content

Commit 1f58a0b

Browse files
authored
Merge pull request #76 from xpepermint/master
Fix readme
2 parents 270ba24 + 0833303 commit 1f58a0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ const Model = createModelClass([
441441
]);
442442
```
443443

444-
**Model(data, config)**
444+
**Model<Context>(data, config)**
445445

446446
> Abstract class which represents a strongly-typed JavaScript object.
447447
@@ -571,6 +571,10 @@ user.flatten(); // -> [{ path, prop, value }, ...]
571571

572572
> Makes each model property not settable.
573573
574+
**Model.prototype.getContext()**: Context
575+
576+
> Returns model context data.
577+
574578
**Model.prototype.getParent()**: Model
575579

576580
> Returns the parent model instance in a tree of models.

0 commit comments

Comments
 (0)