Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
505 B · 22 lines
TypeScript
1234567891011121314151617181920212223import type { PyNodeBase } from '../base';import { PyNodeKind } from '../kinds';
export type LiteralValue = string | number | boolean | null;
export interface PyLiteral extends PyNodeBase { kind: PyNodeKind.Literal; value: LiteralValue;}
export function createLiteral( value: LiteralValue, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>,): PyLiteral { return { kind: PyNodeKind.Literal, leadingComments, trailingComments, value, };}