Generated TypeScript definition files for Slate
First install the typings via npm. For example, to install the slate
typings,
we would run:
npm install @crosslead/slate-typings
Next, add "./node_modules/@crosslead"
to the typeRoots
option in your tsconfig.json
{
...,
"typeRoots": ["./node_modules/@crosslead", "@types"]
}
see ./packages
for the type definition files.
Run the generation script
sh ./scripts/generate.sh