MCPcopy Index your code
hub / github.com/processing/p5.js / hasTypedefProperties

Function hasTypedefProperties

utils/typescript.mjs:349–361  ·  view source on GitHub ↗
(typedefEntry)

Source from the content-addressed store, hash-verified

347
348// Check if typedef represents a real object shape
349function hasTypedefProperties(typedefEntry) {
350 if (!Array.isArray(typedefEntry.properties) || typedefEntry.properties.length === 0) {
351 return false;
352 }
353 // Reject self-referential single-property typedefs
354 if (
355 typedefEntry.properties.length === 1 &&
356 typedefEntry.properties[0].name === typedefEntry.name
357 ) {
358 return false;
359 }
360 return true;
361}
362
363// Convert JSDoc FunctionType into a TypeScript function signature string
364function convertFunctionTypeForInterface(typeNode, options) {

Callers 2

convertTypeToTypeScriptFunction · 0.85
generateTypeDefinitionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected