Using Typescript
Outsmartly provides type definitions in the @outsmartly/core
npm package. These can be used inside your UI code, outsmartly.config.ts, or for custom plugins, middleware, etc.
To use TypeScript for your config, use the CLI's --config
flag:
Note that while Outsmartly's CLI supports TypeScript syntax inside your config, it does not do any actual type checking itself. You can use the tsc
TypeScript CLI to do type checking separately, along with their noEmit
option to do type checking only.
Last updated