Typing
The @requence/service package supports automatic type generation for TypeScript. A dedicated CLI tool is provided for this purpose.
requence-service cli tool
Section titled “requence-service cli tool”The CLI tool uses the previously created access token to connect to the Requence backend servers. Alternatively, you can provide the access token as a parameter.
requence-service generate-types# alternative with explicite access tokenrequence-service generate-types --access-token=...By default, the CLI tool generates a requence-env.d.ts file that includes the types of the service in all available versions.
This behavior can be adjusted using the --outfile and --outdir parameters.
requence-service generate-types --outdir=src --outfile=requence-types.ts