ITADN

feat!: new `@scalar/openapi-types` package

#175Pull Requesthanspagel 创建于 2024-08-09已合并
H
hanspagelcommented
We modified and extended the `openapi-types` package for our use case. We’re basically allowing any user input, but still maintaining the types based on the OpenAPI specification. With this PR, we’re exposing those types as a separate, dependency-free package called `@scalar/openapi-types`. Even comes with basic type tests. :) Note: This is a breaking change. Instead of importing types from `@scalar/openapi-parser`, users now have to import from `@scalar/openapi-types`. **Usage** ```bash npm add @scalar/openapi-types ``` And use it like this: ```ts import type { OpenAPI } from '@scalar/openapi-types' const file: OpenAPI.Document = { openapi: '3.1.0', info: { title: 'Hello World', version: '1.0.0', }, paths: {}, } ```
合并状态:已合并 合并于 2024-08-27 关闭于 2024-08-27 4 条评论