Skip to content

Error When Using Short-hand Improperly

Choose a tag to compare

@Sinjhin Sinjhin released this 26 Oct 17:33
· 417 commits to master since this release

This release makes it so that using the shorthand syntax for a Define property without a properly defined propDefinition with throw an error and cause the value to not be set.

For Example:

DefineMap.extend({
  prop01: DefineMap, // <- Sets Type to DefineMap
  prop02: 0, // <- Throws error and prop02 is not set
  prop03: 'boolean', // <- Sets type to boolean
  prop04: 'string that is not a type' // <- Throws error and prop04 is not set