ava/entrypoints/plugin.d.ts
Mark Wubben 48dcafa2b8
Update dependencies; more type tweaks
* 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.
2022-09-25 17:06:16 +02:00

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';