ObjectModel icon indicating copy to clipboard operation
ObjectModel copied to clipboard

Strong Dynamically Typed Object Modeling for JavaScript

Results 12 ObjectModel issues
Sort by recently updated
recently updated
newest added

Using for example a `ObjectModel`, how can I add method or functions to it? In the following example, how can I add or create the method `getColor()` so it returns...

We've been using ObjectModel library as a core element in our app for the last 2 years and we are thrilled with the features. It has helped immensely to find...

I can't for the life of me get `RefModel` in the global space for the unit tests. Otherwise, I believe this PR fits the proposal I made in #174. I'm...

## Context It often happens that an object model needs to reference itself or a model that references it. There exists a work around for this in the [FAQ](https://objectmodel.js.org/#common-questions); but...

I flip-flopped on whether `this` or `D` was better here. Ended up going for `this` because `BasicModel` is more accurate than `StringConstructor` when looking at the types in an editor.

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.13 to 8.4.31. Release notes Sourced from postcss's releases. 8.4.31 Fixed \r parsing to fix CVE-2023-44270. 8.4.30 Improved source map performance (by @​romainmenke). 8.4.29 Fixed Node#source.offset (by...

dependencies

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.13 to 8.4.31. Release notes Sourced from postcss's releases. 8.4.31 Fixed \r parsing to fix CVE-2023-44270. 8.4.30 Improved source map performance (by @​romainmenke). 8.4.29 Fixed Node#source.offset (by...

dependencies

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @​mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @​OlafConijn in...

dependencies

Hello, Given this code sample: ```javascript import { Model } from "objectmodel" const classSchema = { id: String, lastName: [String], firstName: [String] } const defaultValues = { lastName: "a" }...

There are multiple 'for-in's that trigger eslint errors for the built version of the library: 119:4 error The body of a for-in should be wrapped in an if statement to...