MCPcopy Create free account
hub / github.com/SplootCode/splootcode / serializeVariableDeclaration

Function serializeVariableDeclaration

scripts/generateLibs.ts:323–333  ·  view source on GitHub ↗
(declaration: ts.VariableDeclaration)

Source from the content-addressed store, hash-verified

321 }
322
323 function serializeVariableDeclaration(declaration: ts.VariableDeclaration): VariableDefinition {
324 if (!declaration.type) {
325 return
326 }
327 return {
328 name: (declaration.name as ts.Identifier).text,
329 documentation: '',
330 type: serializeTypeExpression(declaration.type),
331 deprecated: false,
332 }
333 }
334}
335
336generateDocumentation(['./scripts/dummy.ts'], {

Callers 1

visitFunction · 0.85

Calls 1

serializeTypeExpressionFunction · 0.85

Tested by

no test coverage detected