Skip to content

Commit

Permalink
chore: fix typo (#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarknessChaser committed Nov 4, 2022
1 parent c5e91fb commit 3ddc754
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/core/useWebWorker/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ import { useWebWorker } from '@vueuse/core'
const { data, post, terminate, worker } = useWebWorker('/path/to/worker.js')
```

| State | Type | Description |
| ----- | ---------- | ---------------------------------------------------------------------------------------------------- |
| data | `Ref<any>` | Reference to the latest data received via the worker, can be watched to respond to incoming messages |
| worker | `ShallowRef<Worker | undefined>` | Reference to the instance of the WebWorker |

| State | Type | Description |
| ------ | --------------------------------- | ---------------------------------------------------------------------------------------------------- |
| data | `Ref<any>` | Reference to the latest data received via the worker, can be watched to respond to incoming messages |
| worker | `ShallowRef<Worker \| undefined>` | Reference to the instance of the WebWorker |

| Method | Signature | Description |
| --------- | --------------------- | -------------------------------- |
Expand Down

0 comments on commit 3ddc754

Please sign in to comment.