(extension: string)
| 210 | * @returns true if supported, false otherwise |
| 211 | */ |
| 212 | export function isSupportedFileType(extension: string): extension is SupportedFileType { |
| 213 | try { |
| 214 | return Object.keys(getParserInstances()).includes(extension.toLowerCase()) |
| 215 | } catch (error) { |
| 216 | logger.error('Error checking supported file type:', error) |
| 217 | return false |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | export type { FileParseResult, SupportedFileType } |
no test coverage detected