@speelpleinwerking.com/protobufs
v0.1.4
Published
Protocol buffers and parsers for speelpleinwerking.com
Downloads
1
Readme
Protocol buffers
These protocol buffers define the data structures for speelpleinwerking.com. They are compiled to JS and TS with protobuf.js.
Usage
npm install @speelpleinwerking.com/protobufs
TypeScript
import { Playground } from '@speelpleinwerking.com/protobufs';
Playground.verify({}); // 'canonicalName: string expected'
...
See here for available methods on the types.
JavaScript
const models = require('@speelpleinwerking.com/protobufs')
models.Playground.verify({}) // 'canonicalName: string expected'
...
See here for available methods on the types.
Development
To build the package (this will compile the .proto files to a .js and a .d.ts file):
npm run build
The tests are very simple. They only do a simple sanity check. To run the tests:
npm test
Docs
Latest docs built from master
are available here.