UNPKG

@rightcapital/php-parser

Version:

TypeScript types for PHP Parser JSON representation

10 lines (9 loc) 499 B
import type { NodeAbstract } from '../node'; import type { NodeTypeInheritingFromFullyQualifiedVarLikeIdentifier } from "../types"; import type { NodeTypeInheritingFromFullyQualifiedExpr } from "../types"; export interface PropertyItem extends Omit<NodeAbstract, 'nodeType'> { nodeType: 'PropertyItem'; ["name"]: NodeTypeInheritingFromFullyQualifiedVarLikeIdentifier; ["default"]: null | NodeTypeInheritingFromFullyQualifiedExpr; } export type FullyQualifiedPropertyItem = PropertyItem;