Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
531 B · 22 lines
TypeScript
1234567891011121314151617181920212223import type { PyNodeBase } from '../base';import { PyNodeKind } from '../kinds';
export interface PyImportStatement extends PyNodeBase { isFrom: boolean; kind: PyNodeKind.ImportStatement; module: string; names?: ReadonlyArray<{ alias?: string; name: string }>;}
export function createImportStatement( module: string, names?: ReadonlyArray<{ alias?: string; name: string }>, isFrom: boolean = false,): PyImportStatement { return { isFrom, kind: PyNodeKind.ImportStatement, module, names, };}