Skip to content

schema-dts & schema-dts-gen v0.4.0

Compare
Choose a tag to compare
@Eyas Eyas released this 20 May 22:53

Changelog

Changes in schema-dts

  • Updates Schema.org to version 3.6 (up from 3.4 in the previous release)
  • Non-exported types are slightly restructured to be more readable (see blow)

Changes in schema-dts-gen

  • Generated types are slightly restructured to be more readable; the "XyzBase" type will never have a "@type" property on it. This will always be added in the export type Xyz stage.

Fixes

  • Properly escapes class and type names for Schema.org classes whose names are not valid TypeScript Identifier names (e.g. 3DModel becomes _3DModel)
  • Some types, e.g. Quantity and it's children, should always accept 'string' as its value.