We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59756ac commit f1ea8c9Copy full SHA for f1ea8c9
plugin.d.ts
@@ -1,3 +1,5 @@
1
+import {URL} from 'url';
2
+
3
export namespace SharedWorker {
4
export type ProtocolIdentifier = 'experimental';
5
@@ -46,7 +48,7 @@ export namespace SharedWorker {
46
48
47
49
export namespace Plugin {
50
export type RegistrationOptions<Identifier extends ProtocolIdentifier, Data = unknown> = {
- readonly filename: string;
51
+ readonly filename: string | URL;
52
readonly initialData?: Data;
53
readonly supportedProtocols: readonly Identifier[];
54
readonly teardown?: () => void;
0 commit comments