Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
576 B · 24 lines
TypeScript
12345678910111213141516171819202122232425import type { PyNodeBase } from '../base';import type { PyExpression } from '../expression';import { PyNodeKind } from '../kinds';
export interface PyWithItem extends PyNodeBase { alias?: PyExpression; contextExpr: PyExpression; kind: PyNodeKind.WithItem;}
export function createWithItem( contextExpr: PyExpression, alias?: PyExpression, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>,): PyWithItem { return { alias, contextExpr, kind: PyNodeKind.WithItem, leadingComments, trailingComments, };}