import { DomSource } from '../types' ; import { curry2 } from '@most/prelude' ; export const query = curry2 < string , DomSource , DomSource > ( function selectWrapper ( cssSelector , domSource ) { return domSource . select ( cssSelector ) ; } ) ; export interface QueryFn { ( cssSelector , domSource ) : DomSource ; ( cssSelector ) : ( domSource : DomSource ) => DomSource ; }