On this page
Extra Packages
First party utility packages
List of Packages
pave-basic-types
The pave-basic-types package provides a out-of-the-box set of scalar types for jumpstarting your schema construction. Instead of writing boilerplate types such as string, int, or otherwise, just import this package via your package.json and extract either all of it or just what you need.
Examples
All
import basicTypes from 'pave-basic-types';
export default {
...basicTypes,
...(other, custom, schema types)
}
Selective
import basicTypes from 'pave-basic-types';
const { string, number, object } = basicTypes;
export default {
string,
number,
object,
...(other, custom, schema types)
}