gdtf-types
v1.0.0
Published
Types for the GDTF file format
Downloads
16
Readme
GDTF TS Schema
How to use
import type { document as GDTFDocument, Model } from 'gdtf-types';How to build
- Download
gdtf.xsdfrom here - Run
npx http-serverin the directory wheregdtf.xsdis located - Edit that file and add the following attributes to the
xs:schematag:targetNamespace="urn:gdtf" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.0" - Run
npx cxsd http://127.0.0.1:8082/gdtf.xsd - The generated
gdtf.d.tsfile will be located in thexmlnsfolder. You will also need thexml-primitives.d.tsfile from the same folder.
[!IMPORTANT]
Before rebuilding, delete thecacheand thexmlnsfolders.
