Interface MessagePortRequest<M, K>

interface MessagePortRequest<M, K> {
    args?: M[K] extends ((...args) => any)
        ? Parameters<any[any]>
        : M[K];
    call: K;
    id: number;
}

Type Parameters

  • M = Record<string, ((...args) => any)>

  • K extends keyof M = keyof M

Hierarchy (view full)

Properties

Properties

args?: M[K] extends ((...args) => any)
    ? Parameters<any[any]>
    : M[K]
call: K
id: number

Generated using TypeDoc