| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains scripts for automatically generating TypeScript types from JSG RTTI.
# Generates types to `../bazel-bin/types/api.d.ts`
$ bazel build //types:typesWhen developing generator scripts with an IDE, you'll need to install dependencies yourself for integrated type checking and completions to work.
# Generates JSG RTTI Cap’n Proto JavaScript/TypeScript files
$ bazel build //src/workerd/jsg:rtti_capnp_js
# Install dependencies (note pnpm is required by https://github.com/aspect-build/rules_js)
$ pnpm install
# Generates types to `../bazel-bin/types/api.d.ts`
$ bazel build //types:types
# Run tests
$ bazel test //types:alljust generate-types| Back | FazBrowse Home | New Git URL |