Variable: recentAPI
const recentAPI: {
addRecentFile: (filePath: string) => void;
getShortRecentName: (file: unknown) => string;
loadRecentFiles: () => string[];
saveRecentFiles: (list: string[]) => void;
};
Defined in: utils/files/recent/index.ts:89
Type Declarationβ
addRecentFileβ
addRecentFile: (filePath: string) => void;
Adds a file to the recent-files list when Node file access is available.
Parametersβ
filePathβ
string
Returnsβ
void
getShortRecentNameβ
getShortRecentName: (file: unknown) => string;
Returns a display-safe basename for a recent file path.
Parametersβ
fileβ
unknown
Returnsβ
string
loadRecentFilesβ
loadRecentFiles: () => string[];
Loads recent files when Node file access is available.
Returnsβ
string[]
saveRecentFilesβ
saveRecentFiles: (list: string[]) => void;
Saves the recent-files list when Node file access is available.
Parametersβ
listβ
string[]
Returnsβ
void