示例工程 36-project-desktop-hub
36-project-desktop-hub/app/.tsc/shared/deep-link.d.ts
export type HubView = "inbox" | "tasks" | "settings";
export declare const HUB_VIEWS: HubView[];
export type LinkError = "EMPTY" | "BAD_FORMAT" | "BAD_SCHEME" | "BAD_HOST" | "BAD_VIEW" | "BAD_ID";
export type ParsedHubLink = {
ok: true;
raw: string;
view: HubView;
id: string | null;
} | {
ok: false;
raw: string;
reason: LinkError;
detail: string;
};
export declare function isHubView(value: string): value is HubView;
export declare function parseHubLink(raw: string): ParsedHubLink;
export declare function hubLinkFromArgv(argv: readonly string[]): string | null;
//# sourceMappingURL=deep-link.d.ts.map