Use FlagSync’s CLI to generate TypeScript type definitions.
@flagsync/cli
generates TypeScript type definitions based on your flag configurations.
lib/flagsync/flags.d.ts
.Most default tsconfig.json
setups include this file via a broad pattern like **/*.ts
, but if you’re using a custom config, make sure it’s covered by the include array:"include": ["**/*.ts"]
@flagsync/react-sdk
@flagsync/nextjs-sdk
@flagsync/js-sdk
flagsync login
flagsync logout
flagsync login
again to use other commands.flagsync generate
lib/flagsync/flags.d.ts
.flagsync generate
, your project will have:
flags.d.ts
file contains:
FeatureFlags
interface with all your flagslib/flagsync/flags.d.ts
.Most default tsconfig.json
setups include this file via a broad pattern like **/*.ts
, but if you’re using a custom config, make sure it’s covered by the include array:"include": ["**/*.ts"]