import { SubjectDataSetFilter , SubjectDataSetFilterExpression , SubjectDataSetFilterJoint } from './subject-types' ; export const isJointFilter = ( filter ) : filter is SubjectDataSetFilterJoint => { return ! ! ( filter as any ) . jointType ; } ; export const isExpressionFilter = ( filter ) : filter is SubjectDataSetFilterExpression => { return ! ! ( filter as any ) . operator ; } ;