webtau API
    Preparing search index...

    Interface CoreProvider

    interface CoreProvider {
        id: string;
        convertFileSrc(filePath: string, protocol?: string): string;
        invoke<T = unknown>(
            command: string,
            args?: Record<string, unknown>,
        ): Promise<T>;
    }
    Index

    Properties

    Methods

    Properties

    id: string

    Unique identifier for this runtime (e.g. "tauri", "electrobun").

    Methods

    • Convert a file path to a URL suitable for loading assets.

      Parameters

      • filePath: string
      • Optionalprotocol: string

      Returns string

    • Invoke a command on the runtime backend.

      Type Parameters

      • T = unknown

      Parameters

      • command: string
      • Optionalargs: Record<string, unknown>

      Returns Promise<T>