(filepath: string)
| 56 | }; |
| 57 | |
| 58 | const isAudioFile = (filepath: string) => { |
| 59 | return audioFileExtensions.includes(path.extname(filepath).slice(1).toLowerCase()); |
| 60 | }; |
| 61 | |
| 62 | const isImageFile = (filepath: string) => { |
| 63 | return imageFileExtensions.includes(path.extname(filepath).slice(1).toLowerCase()); |