UNPKG

@rightcapital/phpdoc-parser

Version:

TypeScript version of PHPDoc parser with support for intersection types and generics

16 lines (15 loc) 708 B
import type { IdentifierTypeNode } from './identifier-type-node'; import { TypeNode } from './type-node'; export type GenericTypeNodeVariance = 'invariant' | 'covariant' | 'contravariant' | 'bivariant'; export declare class GenericTypeNode extends TypeNode { type: IdentifierTypeNode; genericTypes: TypeNode[]; variances: string[]; static readonly VARIANCE_INVARIANT: "invariant"; static readonly VARIANCE_COVARIANT: "covariant"; static readonly VARIANCE_CONTRAVARIANT: "contravariant"; static readonly VARIANCE_BIVARIANT: "bivariant"; constructor(type: IdentifierTypeNode, genericTypes: TypeNode[], variances?: string[]); toString(): string; getNodeType(): string; }