Features

Strongly Typed

Move fast and break nothing with type safety

Fern generated SDKs are optimized for great autocompletion in code editors. Developers will receive compile errors when they forget to specify required fields or attempt to access fields that do not exist.

TypeScript SDKs are published with type declarations (i.e. .d.ts files). This ensures that TypeScript consumers can leverage compile-time safety and intellisense when using the SDK.

Each SDK method is annotated with request and response types.

1import { Genre } from "../genre";
2
3export interface MovieClient {
4
5 /**
6 * Creates a movie
7 * @param request the movie to create
8 * @returns the created Movie
9 */
10 void create(request: CreateMovieRequest): Promise<Movie>;
11}
12
13export interface CreateMovieRequest {
14 name: string;
15 genre: Genre;
16}
17
18export interface Movie {
19 /* Generated ID for the movie */
20 id: string;
21 name: string;
22 genre: Genre;
23}