kernl API
    Preparing search index...

    Interface AskChannel

    Puts questions to the person through the host's renderers.

    interface AskChannel {
        ask<K extends keyof AskKinds>(ask: Ask<K>): Promise<AskAnswer<K>>;
        has(kind: keyof AskKinds): boolean;
    }
    Index
    • Ask, and resolve with the person's answer. Resolves with the kind's refusal when nothing draws the kind, when the renderer throws or rejects, and when the window that asked has closed by the time it answers. Never rejects. Nothing here times an ask out.

      Type Parameters

      Parameters

      Returns Promise<AskAnswer<K>>

    • Whether the host draws this kind, through a renderer or a prompt callback.

      Parameters

      Returns boolean