[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:
Alec 2019-10-30 04:22:47 -04:00 committed by Esteban Gehring
parent 9c46973bcb
commit b1984f3c49
31 changed files with 8 additions and 35 deletions

View File

@ -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"));

View File

@ -1,5 +1,4 @@
// tslint:disable
/// <reference path="./custom.d.ts" />
{{>licenseInfo}}
{{^withSeparateModelsAndApi}}

View File

@ -1,6 +1,5 @@
{{#withSeparateModelsAndApi}}
// tslint:disable
/// <reference path="{{apiRelativeToRoot}}custom.d.ts" />
{{>licenseInfo}}
import * as globalImportUrl from 'url';

View File

@ -1,5 +1,4 @@
// tslint:disable
/// <reference path="./custom.d.ts" />
{{>licenseInfo}}
import { Configuration } from "./configuration";

View File

@ -1 +0,0 @@
declare module 'url';

View File

@ -1,5 +1,4 @@
// tslint:disable
/// <reference path="{{modelRelativeToRoot}}custom.d.ts" />
{{>licenseInfo}}
{{#withSeparateModelsAndApi}}{{#imports}}
import { {{class}} } from './{{filename}}';{{/imports}}{{/withSeparateModelsAndApi}}

View File

@ -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": {

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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"

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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"

View File

@ -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.

View File

@ -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.

View File

@ -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"