mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-19 05:03:32 +08:00
11 lines
236 B
TypeScript
11 lines
236 B
TypeScript
/// <reference path="../koa/koa.d.ts" />
|
|
/// <reference path="koa-static.d.ts" />
|
|
|
|
import * as Koa from "koa";
|
|
import serve = require("koa-static");
|
|
|
|
const app = new Koa();
|
|
|
|
app.use(serve('.',{index:false,defer:false}));
|
|
|
|
app.listen(80) |