Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const getFileType = (type: FileType): IFileType => {
switch (type) {
case FileType.Directory: {
return 'folder';
}
case FileType.File: {
return 'file';
}
case FileType.SymbolicLink: {
return 'symbolic-link';
}
}
return 'unknown';
}