1 parent a3bea6c commit 993c3f3Copy full SHA for 993c3f3
1 file changed
docs/content/1.guide/12.in-page-channel.md
@@ -37,11 +37,13 @@ import type { InPageChannelProtocol } from 'devframe/in-page-channel'
37
export const MY_CHANNEL = 'devframes:plugin:my-tool'
38
39
export interface MyChannelProtocol extends InPageChannelProtocol {
40
- pageScript: { // functions and events received by the page script
+ // implemented by the page script, callable by panels
41
+ pageScript: {
42
highlight: (selector: string) => void
43
measure: (selector: string) => { width: number, height: number }
44
}
- panel: { // functions and events received by panels
45
+ // implemented by panels, callable by the page script
46
+ panel: {
47
flash: (message: string) => void
48
49
sharedStates: {
0 commit comments