mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Remove <reference path="../xxx/xxx.d.ts"> from definitions files and replace it with import * as Xxx from "xxx" or <reference types="xxx"/>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"webpack-dev-server.d.ts",
|
||||
"webpack-dev-server-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
/// <reference path="webpack-dev-server.d.ts" />
|
||||
/// <reference path="../webpack/webpack.d.ts"/>
|
||||
|
||||
import * as webpack from 'webpack';
|
||||
import * as WebpackDevServer from 'webpack-dev-server';
|
||||
var compiler = webpack({});
|
||||
@@ -21,7 +18,7 @@ server = new WebpackDevServer(compiler, {
|
||||
// Enable special support for Hot Module Replacement
|
||||
// Page is no longer updated, but a "webpackHotUpdate" message is send to the content
|
||||
// Use "webpack/hot/dev-server" as additional module in your entry point
|
||||
// Note: this does _not_ add the `HotModuleReplacementPlugin` like the CLI option does.
|
||||
// Note: this does _not_ add the `HotModuleReplacementPlugin` like the CLI option does.
|
||||
|
||||
// Set this as true if you want to access dev server from arbitrary url.
|
||||
// This is handy if you are using a html5 router.
|
||||
|
||||
-4
@@ -3,10 +3,6 @@
|
||||
// Definitions by: maestroh <https://github.com/maestroh>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../webpack/webpack.d.ts" />
|
||||
/// <reference path="../serve-static/serve-static.d.ts" />
|
||||
/// <reference path="../express-serve-static-core/express-serve-static-core.d.ts" />
|
||||
|
||||
declare module "webpack-dev-server" {
|
||||
import * as webpack from 'webpack';
|
||||
import * as core from 'express-serve-static-core';
|
||||
|
||||
Reference in New Issue
Block a user