Skip to content

Commit e65f252

Browse files
committed
- Typescript 3.8 updates
1 parent e6c423d commit e65f252

File tree

137 files changed

+454
-433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+454
-433
lines changed

.babelrc.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ module.exports = {
44
presets: [
55
['@babel/preset-env', {
66
targets: {
7-
node: 'current'
8-
}
7+
node: true,
8+
},
9+
}],
10+
['@babel/preset-typescript', {
11+
onlyRemoveTypeImports: true,
912
}],
10-
'@babel/preset-typescript',
1113
],
1214
};

jest.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ module.exports = {
1515
displayName: 'E2E',
1616
testEnvironment: 'node',
1717
testMatch: [
18-
// '<rootDir>/test/e2e/v2.fetch.spec.js',
19-
// '<rootDir>/test/e2e/v2.xhr.spec.js',
20-
// '<rootDir>/test/e2e/v2.node.spec.js',
21-
// '<rootDir>/test/e2e/v2.babel.spec.js',
22-
// '<rootDir>/test/e2e/v3.fetch.spec.js',
23-
// '<rootDir>/test/e2e/v3.xhr.spec.js',
24-
// '<rootDir>/test/e2e/v3.node.spec.js',
18+
'<rootDir>/test/e2e/v2.fetch.spec.js',
19+
'<rootDir>/test/e2e/v2.xhr.spec.js',
20+
'<rootDir>/test/e2e/v2.node.spec.js',
21+
'<rootDir>/test/e2e/v2.babel.spec.js',
22+
'<rootDir>/test/e2e/v3.fetch.spec.js',
23+
'<rootDir>/test/e2e/v3.xhr.spec.js',
24+
'<rootDir>/test/e2e/v3.node.spec.js',
2525
'<rootDir>/test/e2e/v3.babel.spec.js',
2626
],
2727
},

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@
5959
"prettier": "prettier \"./src/**/*.ts\" \"./bin/index.js\" --check",
6060
"prettier:fix": "prettier \"./src/**/*.ts\" \"./bin/index.js\" --write",
6161
"prepublish": "yarn run clean && yarn run release",
62-
"codecov": "codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b",
63-
"aap": "node test/e2e/index.js"
62+
"codecov": "codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b"
6463
},
6564
"dependencies": {
6665
"@types/node-fetch": "2.5.7",

src/client/interfaces/Client.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Model } from './Model';
2-
import { Service } from './Service';
1+
import type { Model } from './Model';
2+
import type { Service } from './Service';
33

44
export interface Client {
55
version: string;

src/client/interfaces/Model.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Enum } from './Enum';
2-
import { Schema } from './Schema';
1+
import type { Enum } from './Enum';
2+
import type { Schema } from './Schema';
33

44
export interface Model extends Schema {
55
name: string;

src/client/interfaces/Operation.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { OperationError } from './OperationError';
2-
import { OperationParameters } from './OperationParameters';
3-
import { OperationResponse } from './OperationResponse';
1+
import type { OperationError } from './OperationError';
2+
import type { OperationParameters } from './OperationParameters';
3+
import type { OperationResponse } from './OperationResponse';
44

55
export interface Operation extends OperationParameters {
66
service: string;

src/client/interfaces/OperationParameter.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Model } from './Model';
1+
import type { Model } from './Model';
22

33
export interface OperationParameter extends Model {
44
in: 'path' | 'query' | 'header' | 'formData' | 'body' | 'cookie';

src/client/interfaces/OperationParameters.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { OperationParameter } from './OperationParameter';
1+
import type { OperationParameter } from './OperationParameter';
22

33
export interface OperationParameters {
44
imports: string[];

src/client/interfaces/OperationResponse.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Model } from './Model';
1+
import type { Model } from './Model';
22

33
export interface OperationResponse extends Model {
44
in: 'response' | 'header';

src/client/interfaces/Service.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Operation } from './Operation';
1+
import type { Operation } from './Operation';
22

33
export interface Service {
44
name: string;

0 commit comments

Comments
 (0)