JSONAPI-typescript
TypeScript type information for compile-time validation of JSON:API documents. Supports TS 2.3 and above.
How to use this
- Install this package
npm install --save-dev jsonapi-typescript
- Import this module
;
- check to see if json types are validated correctly
; // ✅ This should be OK; // ⛔️ This should NOT be OK ("result" is not a valid JSON:API top-level key); // ⛔️ This should NOT be OK ( empty Array is not a valid JSON:API document );
Copyright
© 2017 Mike North, All Rights Reserved.