@ahoo-wang/fetcher-openapi
Version:
OpenAPI Specification TypeScript types for Fetcher - A modern, ultra-lightweight HTTP client for browsers and Node.js. Provides complete TypeScript support with type inference for OpenAPI 3.x schemas.
18 lines • 425 B
TypeScript
/**
* Reference object definitions for OpenAPI Specification
*/
/**
* Reference object to allow referencing components in the document
*
* @property $ref - JSON Pointer to the target component
*/
export interface Reference {
$ref: string;
}
/**
* Utility type to check if an object is a reference
*/
export type IsReference<T> = T extends {
$ref: string;
} ? T : never;
//# sourceMappingURL=reference.d.ts.map