From 8905f8d5d5f2997341e8d8a89f0c4d1468398b6e Mon Sep 17 00:00:00 2001 From: Greg Venech Date: Tue, 28 Nov 2017 23:13:46 -0500 Subject: [PATCH] docs(README): fix syntax highlighting on `webpack.js.org` (#112) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 039d8e5..9c5ad8c 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ self.addEventListener('message', (event) => console.log(event)) To integrate with TypeScript, you will need to define a custom module for the exports of your worker **typings/custom.d.ts** -```ts +```typescript declare module "worker-loader!*" { class WebpackWorker extends Worker { constructor(); @@ -179,7 +179,7 @@ declare module "worker-loader!*" { ``` **Worker.ts** -```ts +```typescript const ctx: Worker = self as any; // Post data to parent thread @@ -190,7 +190,7 @@ ctx.addEventListener("message", (event) => console.log(event)); ``` **App.ts** -```ts +```typescript import Worker = require("worker-loader!./Worker"); const worker = new Worker();