( nodes: ts.NodeArray<ts.ParameterDeclaration>, context: SerializationContext )
| 139 | } |
| 140 | |
| 141 | const serializeParameters = ( |
| 142 | nodes: ts.NodeArray<ts.ParameterDeclaration>, |
| 143 | context: SerializationContext |
| 144 | ): ReadonlyArray<ParameterModel> => |
| 145 | nodes.map((node) => ({ |
| 146 | name: nameText(node.name), |
| 147 | type: node.type === undefined ? { kind: "unknown" } : serializeType(node.type, context), |
| 148 | optional: node.questionToken !== undefined || node.initializer !== undefined, |
| 149 | rest: node.dotDotDotToken !== undefined, |
| 150 | modifiers: modifiers(node) |
| 151 | })) |
| 152 | |
| 153 | const serializeSignature = ( |
| 154 | node: ts.SignatureDeclarationBase, |
no test coverage detected