openapi-gen-typescript
Advanced tools
Comparing version 0.3.4 to 0.4.0
@@ -28,2 +28,3 @@ "use strict"; | ||
const pathCode = [ | ||
"/* tslint:disable */", | ||
`/** | ||
@@ -30,0 +31,0 @@ * @namespace ${el.fileName} |
@@ -11,5 +11,5 @@ /** | ||
export declare const genCodes: (props: IProps) => Promise<{ | ||
fileCodeList: Array<IFileCode>; | ||
fileCodeList: IFileCode[]; | ||
pathsCode: string[]; | ||
}>; | ||
export {}; |
{ | ||
"name": "openapi-gen-typescript", | ||
"version": "0.3.4", | ||
"version": "0.4.0", | ||
"main": "dist/index.js", | ||
@@ -21,2 +21,3 @@ "types": "dist/index.d.ts", | ||
"tslint": "^6.1.3", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^4.0.3" | ||
@@ -23,0 +24,0 @@ }, |
@@ -26,1 +26,2 @@ # openapi-gen-typescript | ||
| handlePostScript | post script to customize the result | | ||
| handleGenPath | custom generated file path | |
@@ -6,3 +6,2 @@ // @ts-ignore | ||
import { OpenAPIV3 } from 'openapi-types'; | ||
import * as _ from 'lodash'; | ||
import { IGenParmas } from './utils/type'; | ||
@@ -9,0 +8,0 @@ import { genCodes } from './utils/genCodes'; |
@@ -36,2 +36,3 @@ // @ts-ignore | ||
const pathCode = [ | ||
"/* tslint:disable */", | ||
`/** | ||
@@ -38,0 +39,0 @@ * @namespace ${el.fileName} |
@@ -22,3 +22,3 @@ /** | ||
props: IProps, | ||
): Promise<{ fileCodeList: Array<IFileCode>; pathsCode: string[] }> => { | ||
): Promise<{ fileCodeList: IFileCode[]; pathsCode: string[] }> => { | ||
const result: { fileCodeList: IFileCode[]; pathsCode: string[] } = { | ||
@@ -25,0 +25,0 @@ fileCodeList: [], |
{ | ||
"extends": ["tslint:recommended", "tslint-react", "tslint-react-hooks", "tslint-config-prettier"], | ||
"extends": ["tslint:recommended", "tslint-config-prettier"], | ||
"linterOptions": { | ||
@@ -4,0 +4,0 @@ "exclude": ["node_modules/**/*.ts"] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
90865
2136
27
1
9