Type definitions for Bob translate.
npm install --save-dev @bob-translate/types
To ensure TypeScript correctly recognizes the types from @bob-translate/types
, you may need to add it to your tsconfig.json:
{
"compilerOptions": {
"types": ["@bob-translate/types"]
}
}
This step is necessary if TypeScript doesn’t automatically include the types from this package.
// main.ts
import { PluginValidate } from '@bob-translate/types';
const pluginValidate: PluginValidate = (completion) => {
// do something
}