1.0.0 • Published 9 months ago

gdtf-types v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

GDTF TS Schema

How to use

import type { document as GDTFDocument, Model } from 'gdtf-types';

How to build

  1. Download gdtf.xsd from here
  2. Run npx http-server in the directory where gdtf.xsd is located
  3. Edit that file and add the following attributes to the xs:schema tag: targetNamespace="urn:gdtf" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.0"
  4. Run npx cxsd http://127.0.0.1:8082/gdtf.xsd
  5. The generated gdtf.d.ts file will be located in the xmlns folder. You will also need the xml-primitives.d.ts file from the same folder.

!IMPORTANT
Before rebuilding, delete the cache and the xmlns folders.

1.0.0

9 months ago