Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
525 B · 21 lines
TypeScript
12345678910111213141516171819202122import type { PyNodeBase } from '../base';import { PyNodeKind } from '../kinds';import type { PyStatement } from '../statement';
export interface PyBlock extends PyNodeBase { kind: PyNodeKind.Block; statements: ReadonlyArray<PyStatement>;}
export function createBlock( statements: ReadonlyArray<PyStatement>, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>,): PyBlock { return { kind: PyNodeKind.Block, leadingComments, statements, trailingComments, };}