forked from loafle/openapi-generator-original
[TS] Fixes typescript-axios "File custom.d.ts not found" when building consumer TS project (#4230)
* remove unused file * build(package.json): update node and ts * remove ref to ambient declaration * remove other ref to ambient declaration * remove all references to custom.d.ts, rebuild * regenerate typescript axios samples
This commit is contained in:
parent
9c46973bcb
commit
b1984f3c49
@ -107,7 +107,6 @@ public class TypeScriptAxiosClientCodegen extends AbstractTypeScriptClientCodege
|
||||
supportingFiles.add(new SupportingFile("baseApi.mustache", "", "base.ts"));
|
||||
supportingFiles.add(new SupportingFile("api.mustache", "", "api.ts"));
|
||||
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.ts"));
|
||||
supportingFiles.add(new SupportingFile("custom.d.mustache", "", "custom.d.ts"));
|
||||
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
||||
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
{{>licenseInfo}}
|
||||
|
||||
{{^withSeparateModelsAndApi}}
|
||||
|
@ -1,6 +1,5 @@
|
||||
{{#withSeparateModelsAndApi}}
|
||||
// tslint:disable
|
||||
/// <reference path="{{apiRelativeToRoot}}custom.d.ts" />
|
||||
{{>licenseInfo}}
|
||||
|
||||
import * as globalImportUrl from 'url';
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
{{>licenseInfo}}
|
||||
|
||||
import { Configuration } from "./configuration";
|
||||
|
@ -1 +0,0 @@
|
||||
declare module 'url';
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="{{modelRelativeToRoot}}custom.d.ts" />
|
||||
{{>licenseInfo}}
|
||||
{{#withSeparateModelsAndApi}}{{#imports}}
|
||||
import { {{class}} } from './{{filename}}';{{/imports}}{{/withSeparateModelsAndApi}}
|
||||
|
@ -21,8 +21,8 @@
|
||||
"axios": "^0.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^8.0.9",
|
||||
"typescript": "^2.4"
|
||||
"@types/node": "^12.11.5",
|
||||
"typescript": "^3.6.4"
|
||||
}{{#npmRepository}},{{/npmRepository}}
|
||||
{{#npmRepository}}
|
||||
"publishConfig": {
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -21,8 +21,8 @@
|
||||
"axios": "^0.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^8.0.9",
|
||||
"typescript": "^2.4"
|
||||
"@types/node": "^12.11.5",
|
||||
"typescript": "^3.6.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://skimdb.npmjs.com/registry"
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="../../../../custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -21,8 +21,8 @@
|
||||
"axios": "^0.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^8.0.9",
|
||||
"typescript": "^2.4"
|
||||
"@types/node": "^12.11.5",
|
||||
"typescript": "^3.6.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://skimdb.npmjs.com/registry"
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable
|
||||
/// <reference path="./custom.d.ts" />
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
@ -21,8 +21,8 @@
|
||||
"axios": "^0.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^8.0.9",
|
||||
"typescript": "^2.4"
|
||||
"@types/node": "^12.11.5",
|
||||
"typescript": "^3.6.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://skimdb.npmjs.com/registry"
|
||||
|
Loading…
x
Reference in New Issue
Block a user