Skip to content

Commit

Permalink
🤖 Merge PR #68468 [@types/firefox-webext-browser] #68241 fix type for…
Browse files Browse the repository at this point in the history
… `browser.runtime.Port.postMessage` argument by @Grayson-code
  • Loading branch information
Grayson-code committed Mar 10, 2024
1 parent cf6396a commit ad269d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/firefox-webext-browser/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4314,7 +4314,7 @@ declare namespace browser.runtime {
interface Port {
name: string;
disconnect: () => void;
postMessage: (message: object) => void;
postMessage: (message: any) => void;
/** This property will **only** be present on ports passed to onConnect/onConnectExternal listeners. */
sender?: MessageSender | undefined;
error?: Error | undefined;
Expand Down

0 comments on commit ad269d3

Please sign in to comment.