Nest framework TypeScript starter repository.
$ npm install# development
$ npm run start# run in another terminal window
$ npx openapi-typescript http://localhost:3000/api-json --output generated/schema.ts import { ApiType } from './api-lib';
// create typed api call
type ApiCall = ApiType<'/post/{id}', 'delete'>;
const apiCall: ApiCall = {
path: '/post/{id}',
method: 'delete',
params: { id: 1234 },
};