* Upgrade to TypeScript 4.8. Keep testing with 4.7 to ensure backwards compatibility. * Update dev dependencies * Update dependencies * Tweak type definitions used in exports map for TS 4.8 compatibility. Duplicate and export shared types where appropriate, but don't export from the other export file since it seems to confuse things.
6 lines
324 B
TypeScript
6 lines
324 B
TypeScript
import type {SharedWorker} from '../types/shared-worker.cjs';
|
|
|
|
export function registerSharedWorker<Data = unknown>(options: SharedWorker.Plugin.RegistrationOptions<'ava-4', Data>): SharedWorker.Plugin.Protocol<Data>;
|
|
// Add overloads for additional protocols.
|
|
|
|
export type {SharedWorker} from '../types/shared-worker.cjs';
|