Capsium TypeScript API
    Preparing search index...

    Function resolveLayeredPath

    • Resolve a merged-view path (e.g. content/index.html) against the layers visible from viewpoint, TOP → bottom; first hit wins. A path tombstoned at or above the first serving layer resolves tombstoned (reactors answer 404) even when a lower layer has it.

      Parameters

      • files: ReadonlyMap<string, Uint8Array<ArrayBufferLike>>
      • storage:
            | {
                storage: {
                    dataSets: Record<
                        string,
                        | { schemaFile?: string; schemaType?: string; source: string }
                        | { databaseFile: string; table: string },
                    >;
                    layers?: {
                        path: string;
                        visibility?: "exported" | "private";
                        writable?: boolean;
                    }[];
                };
            }
            | undefined
      • path: string
      • viewpoint: "self" | "dependent" = 'self'

      Returns LayeredResolution