KC's Workspace
    Preparing search index...

    Interface for objects that hold external memory that can be explicitly freed.

    interface OutputAsset {
        __rolldown_external_memory_handle__: (
            keepDataAlive?: boolean,
        ) => ExternalMemoryStatus;
        fileName: string;
        name: string | undefined;
        names: string[];
        originalFileName: string | null;
        originalFileNames: string[];
        source: AssetSource;
        type: "asset";
    }

    Hierarchy (View Summary)

    Index

    Properties

    __rolldown_external_memory_handle__: (
        keepDataAlive?: boolean,
    ) => ExternalMemoryStatus

    Frees the external memory held by this object.

    Type Declaration

      • (keepDataAlive?: boolean): ExternalMemoryStatus
      • Parameters

        • OptionalkeepDataAlive: boolean

          If true, evaluates all lazy fields before freeing memory. This will take time but prevents errors when accessing properties after freeing.

        Returns ExternalMemoryStatus

        Status object with freed boolean and optional reason string.

    fileName: string
    name: string | undefined

    Use "names" instead.

    names: string[]
    originalFileName: string | null

    Use "originalFileNames" instead.

    originalFileNames: string[]
    source: AssetSource
    type: "asset"