@yuantest/playwright - v1.0.5
    正在准备搜索索引...

    接口 Initializable

    Interface for components that require asynchronous initialization. Provides a standard way to ensure resources are ready before use.

    interface Initializable {
        initialize(): Promise<void>;
        isInitialized(): boolean;
        ready(): Promise<void>;
    }

    实现于

    索引

    方法

    • Initialize the component asynchronously. Should be idempotent - calling multiple times should have no additional effect.

      返回 Promise<void>

    • Check if the component has been initialized.

      返回 boolean

    • Wait for the component to be ready. If not initialized, will call initialize() automatically.

      返回 Promise<void>