iink-ts - v5.0.0
    Preparing search index...

    Type Alias TSmartGuideHost

    The four things the smart guide asks of the canvas that hosts it.

    Declared here rather than importing InteractiveInkSSRCanvas, for the same reason every manager takes a contract instead of a class: the concrete canvas constructs the smart guide and hands itself in, so naming the class closes a cycle, and it would tie a UI component to one variant. Structural typing means the SSR canvas satisfies this with nothing to declare.

    type TSmartGuideHost = {
        clear(): Promise<void>;
        convert(params?: { conversionState?: TConverstionState }): Promise<unknown>;
        event: CanvasEvent;
        import(
            data: string | TJIIXExport | Blob,
            mimeType?: string,
        ): Promise<unknown>;
    }
    Index
    • Returns Promise<void>

    • Parameters

      Returns Promise<unknown>

    • Parameters

      • data: string | TJIIXExport | Blob
      • OptionalmimeType: string

      Returns Promise<unknown>