(files: Array<string | { path: string }>)
| 14 | const MAC_FILE_PBOARD_TYPE = 'NSFilenamesPboardType' |
| 15 | |
| 16 | function normalizeFilePaths(files: Array<string | { path: string }>): string[] { |
| 17 | return files |
| 18 | .map((file) => (typeof file === 'string' ? file : file.path)) |
| 19 | .filter((filePath): filePath is string => typeof filePath === 'string' && filePath.length > 0) |
| 20 | } |
| 21 | |
| 22 | export function hasClipboardFiles(): boolean { |
| 23 | if (os.platform() === 'darwin') { |
no outgoing calls
no test coverage detected