Skip to content

Commit

Permalink
fix(useWebWorkerFn)!: rename type WebWorkerOptions to `UseWebWorker…
Browse files Browse the repository at this point in the history
…Options` (#1896)
  • Loading branch information
okxiaoliang4 committed Jul 13, 2022
1 parent adf3a4d commit 5246706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useWebWorkerFn/index.ts
Expand Up @@ -13,7 +13,7 @@ export type WebWorkerStatus =
| 'ERROR'
| 'TIMEOUT_EXPIRED'

export interface WebWorkerOptions extends ConfigurableWindow {
export interface UseWebWorkerOptions extends ConfigurableWindow {
/**
* Number of milliseconds before killing the worker
*
Expand All @@ -35,7 +35,7 @@ export interface WebWorkerOptions extends ConfigurableWindow {
*/
export const useWebWorkerFn = <T extends (...fnArgs: any[]) => any>(
fn: T,
options: WebWorkerOptions = {},
options: UseWebWorkerOptions = {},
) => {
const {
dependencies = [],
Expand Down

0 comments on commit 5246706

Please sign in to comment.