Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map(tag => {
switch (tag) {
case DocumentationTag.STABILITY_DEPRECATED:
return ' * @deprecated';
case DocumentationTag.STABILITY_EXPERIMENTAL:
return ' * @experimental';
case DocumentationTag.OS_LINUX:
nodePlatforms.push('linux');
break;
case DocumentationTag.OS_MACOS:
nodePlatforms.push('darwin');
break;
case DocumentationTag.OS_MAS:
nodePlatforms.push('mas');
break;
case DocumentationTag.OS_WINDOWS:
nodePlatforms.push('win32');
break;
}
return '';
})
.filter(tag => tag),