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

Function isAutoTypedProperty

test/fixtures/snapshot/typescript.js:56077–56083  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

56075 return false;
56076 }
56077 function isAutoTypedProperty(symbol) {
56078 // A property is auto-typed when its declaration has no type annotation or initializer and we're in
56079 // noImplicitAny mode or a .js file.
56080 var declaration = symbol.valueDeclaration;
56081 return declaration && ts.isPropertyDeclaration(declaration) && !ts.getEffectiveTypeAnnotationNode(declaration) &&
56082 !declaration.initializer && (noImplicitAny || ts.isInJSFile(declaration));
56083 }
56084 function getDeclaringConstructor(symbol) {
56085 if (!symbol.declarations) {
56086 return;

Callers 2

getFlowTypeOfPropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected