Outsmartly
  • Introduction
  • Performance Best Practices / High Performance Checklist
  • Edge Slice Re-rendering
  • Interceptors
  • Middleware
  • Plugins
  • Reference Guide
    • outsmartly.config.js
    • OutsmartlyRequest
    • OutsmartlyEdgeVisitor
    • OutsmartlyClientVisitor
    • OutsmartlyVisitor
    • OutsmartlyCookies
    • OutsmartlyEvent
    • OutsmartlyOverrideEvent
    • OutsmartlyMiddlewareEvent
    • OutsmartlyInterceptEvent
    • OutsmartlyEdgeMessageEvent
    • OutsmartlyClientMessageEvent
    • OutsmartlyMessageEvent
    • MessageBus
  • Using Typescript
  • Troubleshooting / Debugging
Powered by GitBook
On this page

Was this helpful?

Using Typescript

PreviousMessageBusNextTroubleshooting / Debugging

Last updated 3 years ago

Was this helpful?

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:

outsmartly deploy production --config outsmartly.config.ts

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 to do type checking only.

noEmit option