You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to declare custom structures, such as the data has to include some typed values associated to specified keys, but it can contain some other keys.
Here is an example of how I'd like to use that:
// Structure declaration:domino.struct.add({id: 'myStruct',includes: true,// indicates that other keys can be usedstruct: {myKey: 'string'}});// Some tests:domino.struct.check('myStruct',{myKey: 'myValue',anotherKey: {containing: 'anything'}});// would return truedomino.struct.check('myStruct',{myKey: 42});// would return false
The text was updated successfully, but these errors were encountered:
I would like to declare custom structures, such as the data has to include some typed values associated to specified keys, but it can contain some other keys.
Here is an example of how I'd like to use that:
The text was updated successfully, but these errors were encountered: