@bob-translate/types
v1.0.2
Published
Type definitions for bob-translate
Downloads
18
Readme
@bob-translate/types
Type definitions for Bob translate.
Installation
npm install --save-dev @bob-translate/types
TypeScript Configuration
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.
Usage
// main.ts
import { PluginValidate } from '@bob-translate/types';
const pluginValidate: PluginValidate = (completion) => {
// do something
}