@crhio/normie
v2.0.0
Published
client side state normalization for pinia
Keywords
Readme
normie
client side state normalization for pinia
Documentation
Example
class MyModel extends Entity {
static id = 'my-model';
static schema = mySchema; // object().shape({ foo: string(), bar: number() })
static fields = {
children: hasMany('my-child')
};
myMethod() {
// how do I get type inferrence for children and schema props (foo, bar)
}
}