@platform/cell.schema
Version:
URI and database schemas for the `cell.os`.
27 lines (26 loc) • 620 B
TypeScript
declare type Uri = string;
declare type Path = string;
export declare type ManifestSourceKind = 'url' | 'filepath';
export declare type ManifestSource = {
path: string;
kind: ManifestSourceKind;
domain: string | 'runtime:electron:bundle';
dir: string;
toString(): string;
};
export declare type ManifestUrlParts = {
ok: boolean;
href: string;
protocol: 'http' | 'https';
domain: string;
cell: Uri;
path: Path;
dir: string;
filename: string;
params: ManifestUrlParams;
error?: string;
};
export declare type ManifestUrlParams = {
entry: Path;
};
export {};