@rightcapital/php-parser
Version:
TypeScript types for PHP Parser JSON representation
16 lines (12 loc) • 781 B
text/typescript
import type { ComplexType } from './complex-type'; // fullyQualifiedNodeName FullyQualifiedComplexType
import type { NodeTypeInheritingFromFullyQualifiedIdentifier } from "../types";
import type { NodeTypeInheritingFromFullyQualifiedName } from "../types";
// eslint-disable-next-line @typescript-eslint/naming-convention
export interface IntersectionType extends Omit<ComplexType, 'nodeType'> {
nodeType: 'IntersectionType';
["types"] : (NodeTypeInheritingFromFullyQualifiedIdentifier | NodeTypeInheritingFromFullyQualifiedName)[];
}
// We also need to export a symbol by using node type
// since the nodeName is possibly duplicated
// for the files need to import all nodes, we needs to use nodeType insteads
export type FullyQualifiedIntersectionType = IntersectionType;