Skip to content

Commit

Permalink
fix: no export
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jan 15, 2024
1 parent 6af23b4 commit 4cbc085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/global/types/lib.worker.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface MiniProgramWorker {
interface MiniProgramWorker {
onMessage<T = Record<string, unknown>>(cb: (message: T) => void): void;
postMessage<T = Record<string, unknown>>(message: T): void;
/**
Expand Down
4 changes: 1 addition & 3 deletions tests/global/worker.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { MiniProgramWorker } from '../../packages/global/types/lib.worker';
import '../../packages/global/types/lib.worker';
import { expectAssignable } from 'tsd-lite';

declare const worker: MiniProgramWorker;

expectAssignable<(cb: (evt: any) => any) => any>(worker.onMessage);
expectAssignable<(message: any) => any>(worker.postMessage);
expectAssignable<() => any>(worker.testOnProcessKilled);

0 comments on commit 4cbc085

Please sign in to comment.