From 514cb8a60cf1843393236c7ceb72352731a2756f Mon Sep 17 00:00:00 2001 From: Rob Grindeland Date: Tue, 5 Jun 2018 11:15:49 -0500 Subject: [PATCH] Revert "docs: use ES6 import in TypeScript README example (#140)" This reverts commit 612511d88018ae2983f69155f6a7d9c89bf514ff. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9b8b950..c4e70ba 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ declare module "worker-loader!*" { constructor(); } - export default WebpackWorker; + export = WebpackWorker; } ``` @@ -191,7 +191,7 @@ ctx.addEventListener("message", (event) => console.log(event)); **App.ts** ```typescript -import Worker from "worker-loader!./Worker"; +import Worker = require("worker-loader!./Worker"); const worker = new Worker();