mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 00:21:41 +08:00
Migrated a breaking change between Typescript 0.8 and 0.9: Syntax of external module imports now uses 'require'.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/// <reference path="node.d.ts" />
|
||||
|
||||
import assert = module("assert");
|
||||
import fs = module("fs");
|
||||
import events = module("events");
|
||||
import assert = require("assert");
|
||||
import fs = require("fs");
|
||||
import events = require("events");
|
||||
|
||||
assert(1 + 1 - 2 === 0, "The universe isn't how it should.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user