TypeScript

CastHub provides first-class support to TypeScript users. We have a full-coverage typings package that we maintain and update.

yarn add @casthub/types --dev
npm install @casthub/types --dev

Once installed, you can register the typings manually in your tsconfig.json. For example:

{
    "compilerOptions": {
        ...
        "types": [
            ...
            "@casthub/types"
        ]
        ...
    },
    ...
}

And that's it! You can explore the typings yourself, or browse through our Documentation for various examples written in TypeScript.