Skip to content
Strife Docs

Reference

TypeScript

Strife provides full TypeScript definitions for its core data structures, components, and APIs. These types are available via the @strifeapp/types package and can be used to improve type safety, editor autocompletion, and developer experience when working with Strife programmatically.

Terminal
npm install @strifeapp/types

Usage

You can import the types you need directly from the package:

TypeScript
import {
  type Content
} from '@strifeapp/types';