mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-05 10:21:14 +08:00
11 lines
336 B
TypeScript
11 lines
336 B
TypeScript
/** An IPC lifecycle failure does not establish whether the OS opened the path. */
|
|
export interface OpenPathResult {
|
|
success: boolean;
|
|
error?: string;
|
|
failureKind?: 'ipc_lifecycle';
|
|
}
|
|
|
|
export function shouldShowOpenPathError(result: OpenPathResult): boolean {
|
|
return !result.success && result.failureKind !== 'ipc_lifecycle';
|
|
}
|