mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Converted imports to ES6 module syntax
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// <reference path="serve-static.d.ts" />
|
||||
|
||||
import express = require('express');
|
||||
import serveStatic = require('serve-static');
|
||||
import * as express from 'express';
|
||||
import * as serveStatic from 'serve-static';
|
||||
var app = express();
|
||||
|
||||
app.use(serveStatic('/1'));
|
||||
|
||||
Vendored
+4
-4
@@ -5,8 +5,8 @@
|
||||
|
||||
/* =================== USAGE ===================
|
||||
|
||||
import serveStatic = require('serve-static');
|
||||
app.use(serveStatic('public/ftp', {'index': ['default.html', 'default.htm']}))
|
||||
import * as serveStatic from "serve-static";
|
||||
app.use(serveStatic("public/ftp", {"index": ["default.html", "default.htm"]}))
|
||||
|
||||
=============================================== */
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/// <reference path="../mime/mime.d.ts" />
|
||||
|
||||
declare module "serve-static" {
|
||||
import express = require('express');
|
||||
import * as express from "express";
|
||||
|
||||
/**
|
||||
* Create a new middleware function to serve files from within a given root directory.
|
||||
@@ -76,7 +76,7 @@ declare module "serve-static" {
|
||||
setHeaders?: (res: express.Response, path: string, stat: any) => any;
|
||||
}): express.Handler;
|
||||
|
||||
import m = require('mime');
|
||||
import * as m from "mime";
|
||||
|
||||
module serveStatic {
|
||||
var mime: typeof m;
|
||||
|
||||
Reference in New Issue
Block a user