import { OperationNode } from './operation-node.js' ; import { freeze } from '../util/object-utils.js' ; import { ConstraintNode } from './constraint-node.js' ; export interface AddConstraintNode extends OperationNode { readonly kind : 'AddConstraintNode' ; readonly constraint : ConstraintNode ; } internal export const AddConstraintNode = freeze ( { is ( node ) { return node . kind === 'AddConstraintNode' ; } , create ( constraint ) { return freeze ( { kind : 'AddConstraintNode' , constraint , } ) ; } , } ) ;