MCPcopy Index your code
hub / github.com/nodejs/node / isPrimitiveTypeName

Function isPrimitiveTypeName

test/fixtures/snapshot/typescript.js:50224–50226  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

50222 return false;
50223 }
50224 function isPrimitiveTypeName(name) {
50225 return name === "any" || name === "string" || name === "number" || name === "boolean" || name === "never" || name === "unknown";
50226 }
50227 function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) {
50228 if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 275 /* SyntaxKind.ExportSpecifier */) {
50229 error(errorLocation, ts.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name);

Calls

no outgoing calls

Tested by

no test coverage detected