SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface ResourceFileType

    One recognized file ending within a kind.

    No kind field: a file type is registered INTO a kind, which is what makes the containment real rather than a string that has to match something.

    interface ResourceFileType {
        suffix: string;
        extract?(ctx: ResourceFileContext): Promise<Record<string, unknown> | null>;
        place?(fileName: string, location: string | undefined): string | null;
    }
    Index
    suffix: string

    The ending to match, e.g. .msg.json. Longest match wins across all kinds.

    • This file's contribution to its contents.json entry, or null for "nothing to say".

      null does NOT omit the file — the listing always names every file present.

      Parameters

      Returns Promise<Record<string, unknown> | null>

    • Where the file goes within <kind>/<pkg>/, given the caller-supplied location remainder. null means it cannot be determined and the caller must supply more.

      Parameters

      • fileName: string
      • location: string | undefined

      Returns string | null