Skip to content

Using TypeScript

App-Compose is written in TypeScript. This page shows how to type your code.

For the full list of exported types, see reference/types

A Tag holds a typed value. TypeScript then catches mismatches on both ends — supply and read.

import { tag } from "@grlt-hub/app-compose"
const title = tag<string>("title")