Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
docs(README): fix syntax highlighting on webpack.js.org (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
skipjack authored and michael-ciniawsky committed Nov 29, 2017
1 parent 20af2e9 commit 8905f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -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();
Expand All @@ -179,7 +179,7 @@ declare module "worker-loader!*" {
```

**Worker.ts**
```ts
```typescript
const ctx: Worker = self as any;

// Post data to parent thread
Expand All @@ -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();
Expand Down

0 comments on commit 8905f8d

Please sign in to comment.