Last active
December 2, 2021 03:12
-
-
Save harada-shota/60a62249dca9ce79c1a84aec30cff5fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .msw/importOpenAPISpec.ts | |
import openAPISpec from "{API定義が格納されているパス}/openapi.yaml"; | |
import type { OpenAPISpec } from "./openAPISpec"; | |
export function getOpenAPISpec(): NonNullable<OpenAPISpec> { | |
return openAPISpec as OpenAPISpec; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment