TypeScript types
ActiveGenerated TS types — request params, response envelopes, every schema in the spec. Consumed automatically by @postio/core, @postio/node, @postio/react.
Install
npm i @postio/api-types
30-second example
import type { components } from '@postio/api-types';
type Address = components['schemas']['Address'];
type EmailResult = components['schemas']['EmailResult'];
type PhoneResult = components['schemas']['PhoneResult'];