utils: fix search parser type export (#644)

pull/650/head
panda 1 year ago committed by GitHub
parent b73afc7af6
commit 28a32869e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,7 @@
import { parse, SearchParserOptions, SearchParserResult } from 'search-query-parser'; import type { SearchParserOptions, SearchParserResult } from 'search-query-parser';
import { parse } from 'search-query-parser';
export { parse, SearchParserOptions, SearchParserResult } from 'search-query-parser'; export { parse, SearchParserOptions, SearchParserResult };
export function stringify(queryObject: SearchParserResult, options: SearchParserOptions = {}, prefix = ''): string { export function stringify(queryObject: SearchParserResult, options: SearchParserOptions = {}, prefix = ''): string {
if (!Object.keys(queryObject || {}).length) return ''; if (!Object.keys(queryObject || {}).length) return '';

Loading…
Cancel
Save