Skip to content
Permalink
Browse files

Chore: Use `IServer` instead of `Server`

  • Loading branch information...
molant committed Oct 24, 2019
1 parent 2e2e67c commit 860904de5944beeba2ed3c516bba6760559390d3
@@ -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';

@@ -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')),
@@ -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';
@@ -19,7 +19,7 @@ const { readFileAsync } = fs;
const { asPathString, getAsUri, requestAsync } = network;

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

const test = anyTest as TestInterface<HintRunnerContext>;

0 comments on commit 860904d

Please sign in to comment.
You can’t perform that action at this time.