HUZHUANGZHUANG
HUZHUANGZHUANG
PD🧩 Plasmo Developers
Created by HUZHUANGZHUANG on 6/18/2023 in #👟framework
How to pass data in contents file?
https://docs.plasmo.com/framework/messaging#relay-flow Example at this link contents/plasmo.ts import type { PlasmoCSConfig } from "plasmo" import { relayMessage } from "@plasmohq/messaging" export const config: PlasmoCSConfig = { matches: ["http://www.plasmo.com/*"] // Only relay messages from this domain } relayMessage({ name: "ping" }) Why does this assignment of name: "ping" prompt: Cannot assign type 'string' to type 'never'.
5 replies