···2424import type { PyKeywordArgument as _PyKeywordArgument } from './nodes/expressions/keywordArg';
2525import type { PyLambdaExpression as _PyLambdaExpression } from './nodes/expressions/lambda';
2626import type { PyListExpression as _PyListExpression } from './nodes/expressions/list';
2727-import type { PyLiteral as _PyLiteral } from './nodes/expressions/literal';
2727+import type {
2828+ PyLiteral as _PyLiteral,
2929+ PyLiteralValue as _PyLiteralValue,
3030+} from './nodes/expressions/literal';
2831import type { PyMemberExpression as _PyMemberExpression } from './nodes/expressions/member';
2932import type { PySetExpression as _PySetExpression } from './nodes/expressions/set';
3033import type { PySubscriptExpression as _PySubscriptExpression } from './nodes/expressions/subscript';
···129132130133 // Printer
131134 export type PrinterOptions = _PyPrinterOptions;
135135+136136+ // Miscellaneous
137137+ export type LiteralValue = _PyLiteralValue;
132138}
133139134140export const py = {
···11+import type { TsNode as _TsNode, TsNodeBase as _TsNodeBase } from './nodes/base';
22+import type { TsExpression as _TsExpression } from './nodes/expression';
33+import type { TsIdentifier as _TsIdentifier } from './nodes/expressions/identifier';
44+import type {
55+ TsLiteral as _TsLiteral,
66+ TsLiteralValue as _TsLiteralValue,
77+} from './nodes/expressions/literal';
88+import { factory } from './nodes/factory';
99+import { TsNodeKind } from './nodes/kinds';
1010+import type { TsStatement as _TsStatement } from './nodes/statement';
1111+import type { TsAssignment as _TsAssignment } from './nodes/statements/assignment';
1212+import type { TsVariableStatement as _TsVariableStatement } from './nodes/statements/var';
1313+import type { TsSourceFile } from './nodes/structure/sourceFile';
1414+import type { TsType as _TsType } from './nodes/type';
1515+import type { TsPrinterOptions as _TsPrinterOptions } from './printer';
1616+import { createPrinter, printAst } from './printer';
1717+1818+// eslint-disable-next-line @typescript-eslint/no-namespace
1919+export namespace ts {
2020+ // Base / Core
2121+ export type Node = _TsNode;
2222+ export type NodeBase = _TsNodeBase;
2323+ export type NodeKind = TsNodeKind;
2424+ export type Expression = _TsExpression;
2525+ export type Statement = _TsStatement;
2626+ export type Type = _TsType;
2727+2828+ // Structure
2929+ export type SourceFile = TsSourceFile;
3030+3131+ // Declarations
3232+ // ...
3333+3434+ // Statements
3535+ export type Assignment = _TsAssignment;
3636+ export type VariableStatement = _TsVariableStatement;
3737+3838+ // Expressions
3939+ export type Identifier = _TsIdentifier;
4040+ export type Literal = _TsLiteral;
4141+4242+ // Printer
4343+ export type PrinterOptions = _TsPrinterOptions;
4444+4545+ // Miscellaneous
4646+ export type LiteralValue = _TsLiteralValue;
4747+}
4848+4949+export const ts = {
5050+ TsNodeKind,
5151+ createPrinter,
5252+ factory,
5353+ printAst,
5454+} as const;
5555+5656+export { factory };
+14
packages/openapi-ts/src/ts-compiler/nodes/base.ts
···11+import type { TsExpression } from './expression';
22+import type { TsNodeKind } from './kinds';
33+import type { TsStatement } from './statement';
44+// import type { TsBlock } from './statements/block';
55+import type { TsSourceFile } from './structure/sourceFile';
66+77+export interface TsNodeBase {
88+ kind: TsNodeKind;
99+ leadingComments?: ReadonlyArray<string>;
1010+ trailingComments?: ReadonlyArray<string>;
1111+}
1212+1313+// TsBlock |
1414+export type TsNode = TsExpression | TsSourceFile | TsStatement;
···11+import type { TsIdentifier } from './expressions/identifier';
22+import type { TsLiteral } from './expressions/literal';
33+44+export type TsExpression = TsIdentifier | TsLiteral;
···11+import type { TsAssignment } from './statements/assignment';
22+import type { TsVariableStatement } from './statements/var';
33+44+export type TsStatement = TsAssignment | TsVariableStatement;