Instance | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Interface Instance

    interface Instance {
        get data(): InstanceData;
        get whfsType(): string;
        as<Type extends keyof WHFSTypes>(
            type: Type,
        ): Instance & TypedInstance<Type>;
        assertType<Type extends keyof WHFSTypes>(
            type: Type,
        ): asserts this is TypedInstance<Type>;
        export(options?: ExportOptions): Promise<InstanceExport>;
        is<Type extends keyof WHFSTypes>(
            type: string | Type,
        ): this is TypedInstance<Type>;
    }
    Index

    Accessors

    Methods

    Accessors

    • get whfsType(): string

      Returns string

    Methods

    • Type Parameters

      • Type extends keyof WHFSTypes

      Parameters

      Returns asserts this is TypedInstance<Type>

    • Parameters

      • Optionaloptions: ExportOptions

      Returns Promise<InstanceExport>

    • Type Parameters

      • Type extends keyof WHFSTypes

      Parameters

      Returns this is TypedInstance<Type>