Working with strongly typed custom properties in your schemas
By default, you get IntelliSense in the Enterspeed JavaScript schemas by the @type
expression defined in the top of the schemas (/**
@type {Enterspeed.FullSchema}
*/
). However, this only provides IntelliseSense for the functions and the known properties of the source entity – not the custom properties containing all the data of a source entity.
With the introduction of the new generic versions of the Enterspeed schema types, you can now work with strongly typed custom properties in your schemas by providing a type for your source entity described in JSDoc (/**
@type {Enterspeed.FullSchema<MySourceEntityType>}
*/
).
If you are working with strict types of your source entities, this could be useful and make it easier for you to work with your schemas as you get IntelliSense and defined types on custom properties which could also prevent potential errors.
You can read more about the JSDoc support and see examples on the Enterspeed doc site.