TypeScript Quickstart
Generate a TypeScript SDK by following the instructions on this page.
This guide assumes that you already have an initialized
fern
folder on
your local machine. See Set up the fern
folder for more
details.Pass fern check
Run fern check
to ensure that your API definition is valid. If there are any errors,
fix them before proceeding.
If you’re using an OpenAPI Specification, check out all of our supported extensions.
Add the SDK generator
Add the TypeScript SDK generator:
ts-sdk
is the name of the generators.yml
group that configures your TypeScript
SDK’s output location and other metadata. You can customize this group name to
differentiate between multiple SDKs across different languages (e.g.,
ruby-sdk
, etc) in your organization.
This command adds the following to generators.yml
: