mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 08:24:27 +00:00
Migrate useLastOpenedFile hook
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user