Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias StaticSink

    where publishStatic writes its files: a host folder, an object store or memory

    type StaticSink = {
        has?(path: string): boolean | Promise<boolean>;
        put(
            path: string,
            bytes: Uint8Array,
            contentType: string,
        ): void | Promise<void>;
    }
    Index
    • whether a file is already there; publishStatic leaves the immutable ones it finds alone

      Parameters

      • path: string

      Returns boolean | Promise<boolean>

    • Parameters

      • path: string
      • bytes: Uint8Array
      • contentType: string

      Returns void | Promise<void>