Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 577 Bytes

File metadata and controls

35 lines (26 loc) · 577 Bytes

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

Generate schema

# 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 },
};