Skip to content

Commit

Permalink
Chore: Use IServer instead of Server
Browse files Browse the repository at this point in the history
  • Loading branch information
molant committed Oct 28, 2019
1 parent 2e2e67c commit 860904d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/extension-browser/tests/helpers/host-ui.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from 'path';

import { fs } from '@hint/utils';
import { Server, ServerConfiguration } from '@hint/utils-create-server';
import { IServer, Server, ServerConfiguration } from '@hint/utils-create-server';

import { Page, Props as AppProps } from '../../src/devtools/views/app';

Expand Down Expand Up @@ -47,7 +47,7 @@ const states: (AppProps & State)[] = [
}
];

export const hostUI = async (): Promise<[Server, string[]]> => {
export const hostUI = async (): Promise<[IServer, string[]]> => {

const [rawHtmlSource, jsSource, apiSource] = await Promise.all([
readFileAsync(path.resolve(__dirname, '../../bundle/devtools/panel.html')),
Expand Down
4 changes: 2 additions & 2 deletions packages/utils-tests-helpers/src/hint-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { URL } from 'url';

import anyTest, { TestInterface, ExecutionContext } from 'ava';

import { Server } from '@hint/utils-create-server';
import { IServer, Server } from '@hint/utils-create-server';
import { fs, network } from '@hint/utils';

import { Configuration, Engine, HintsConfigObject, IHintConstructor, Problem, ProblemLocation, utils } from 'hint';
Expand All @@ -19,7 +19,7 @@ const { readFileAsync } = fs;
const { asPathString, getAsUri, requestAsync } = network;

type HintRunnerContext = {
server: Server;
server: IServer;
};

const test = anyTest as TestInterface<HintRunnerContext>;
Expand Down

0 comments on commit 860904d

Please sign in to comment.