fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at d56309541ced1cfbc7a85532fa757fd00cbc7a34 27 lines 683 B view raw
1import type { PyNodeBase } from '../base'; 2import type { PyExpression } from '../expression'; 3import { PyNodeKind } from '../kinds'; 4 5export interface PyFunctionParameter extends PyNodeBase { 6 annotation?: PyExpression; 7 defaultValue?: PyExpression; 8 kind: PyNodeKind.FunctionParameter; 9 name: string; 10} 11 12export function createFunctionParameter( 13 name: string, 14 annotation?: PyExpression, 15 defaultValue?: PyExpression, 16 leadingComments?: ReadonlyArray<string>, 17 trailingComments?: ReadonlyArray<string>, 18): PyFunctionParameter { 19 return { 20 annotation, 21 defaultValue, 22 kind: PyNodeKind.FunctionParameter, 23 leadingComments, 24 name, 25 trailingComments, 26 }; 27}