import * as lf from 'lovefield' ; import { PredicateProvider } from '../modules/PredicateProvider' ; import { Predicate } from '../../interface' ; export function createPredicate < T > ( table , clause = null ) { return clause ? new PredicateProvider ( table , clause ) . getPredicate ( ) : null ; }