Skip to content

Commit

Permalink
patch oazapfts
Browse files Browse the repository at this point in the history
  • Loading branch information
kahirokunn committed Nov 14, 2023
1 parent f07a0da commit 2de81f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kubernetes-typescript-client-codegen-openapi",
"version": "0.0.13",
"version": "0.0.14",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"author": "kahirokunn",
Expand Down Expand Up @@ -57,7 +57,7 @@
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.0.2",
"@kahirokunn/oazapfts-patched": "^0.0.0-development",
"@kahirokunn/oazapfts-patched": "^0.0.1",
"commander": "^6.2.0",
"prettier": "^2.8.8",
"semver": "^7.3.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export async function generateApi(
const interfaces: Record<string, ts.InterfaceDeclaration | ts.TypeAliasDeclaration> = {};
function registerInterface(declaration: ts.InterfaceDeclaration | ts.TypeAliasDeclaration) {
const name = declaration.name.escapedText.toString();
if (name in interfaces) {
if (name in interfaces && strict) {
throw new Error(`interface/type alias ${name} already registered`);
}
interfaces[name] = declaration;
Expand Down

0 comments on commit 2de81f4

Please sign in to comment.