Skip to content

Commit

Permalink
Update to enable es6Interop.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Oct 1, 2021
1 parent 37a3e85 commit 3f48bfd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/cp_test.ts
@@ -1,6 +1,6 @@
import { anything, anyFunction, instance, mock, verify, when } from 'ts-mockito';
import * as querystring from 'querystring';
import * as WebSocket from 'isomorphic-ws';
import WebSocket = require('isomorphic-ws');

import { CallAwaiter } from '../test';
import { KubeConfig } from './config';
Expand Down Expand Up @@ -44,7 +44,7 @@ describe('Cp', () => {
it('should run extract tar command to a url', async () => {
const kc = new KubeConfig();
const fakeWebSocketInterface: WebSocketInterface = mock(WebSocketHandler);
const fakeWebSocket: WebSocket = mock(WebSocket);
const fakeWebSocket: WebSocket = mock(WebSocket) as WebSocket;
const callAwaiter: CallAwaiter = new CallAwaiter();
const exec = new Exec(kc, instance(fakeWebSocketInterface));
const cp = new Cp(kc, exec);
Expand Down
2 changes: 1 addition & 1 deletion src/metrics.ts
@@ -1,4 +1,4 @@
import * as request from 'request';
import request = require('request');

import { KubeConfig } from './config';
import { HttpError, ObjectSerializer } from './gen/api';
Expand Down
2 changes: 1 addition & 1 deletion src/metrics_test.ts
@@ -1,6 +1,6 @@
import { fail } from 'assert';
import { expect } from 'chai';
import * as nock from 'nock';
import nock = require('nock');
import { KubeConfig } from './config';
import { V1Status, HttpError } from './gen/api';
import { Metrics, NodeMetricsList, PodMetricsList } from './metrics';
Expand Down
2 changes: 1 addition & 1 deletion src/object.ts
@@ -1,5 +1,5 @@
import * as http from 'http';
import * as request from 'request';
import request = require('request');
import {
ApisApi,
HttpError,
Expand Down
2 changes: 1 addition & 1 deletion src/object_test.ts
@@ -1,5 +1,5 @@
import { expect } from 'chai';
import * as nock from 'nock';
import nock = require('nock');
import { V1APIResource, V1APIResourceList } from './api';
import { KubeConfig } from './config';
import { KubernetesObjectApi } from './object';
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -15,7 +15,8 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"skipLibCheck": true
"skipLibCheck": true,
"esModuleInterop": true
// enable this when it works with tslint, or we switch to prettier
// "declarationMap": true
},
Expand Down

0 comments on commit 3f48bfd

Please sign in to comment.