Migrate useLastOpenedFile hook

This commit is contained in:
2025-05-11 15:09:11 +02:00
parent 32cb89d329
commit c6d46df7a0
3 changed files with 13 additions and 26 deletions

View File

@@ -31,21 +31,6 @@ export function isSaveFileResponse(obj: unknown): obj is SaveFileResponse {
);
}
export interface LastOpenedFileResponse {
lastOpenedFilePath: string;
}
export function isLastOpenedFileResponse(
obj: unknown
): obj is LastOpenedFileResponse {
return (
typeof obj === 'object' &&
obj !== null &&
'lastOpenedFilePath' in obj &&
typeof (obj as LastOpenedFileResponse).lastOpenedFilePath === 'string'
);
}
export interface UpdateLastOpenedFileRequest {
filePath: string;
}