You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server/packages/swagger-jsdoc-generator/src/utils.ts

11 lines
291 B
TypeScript

import { MethodDeclaration, ParameterDeclaration, SyntaxKind } from 'ts-morph';
/**
* 获取函数参数列表
*/
export function getMethodParameters(
methodDeclaration: MethodDeclaration
): ParameterDeclaration[] {
return methodDeclaration.getChildrenOfKind(SyntaxKind.Parameter);
}