Skip to content

Commit

Permalink
feat: export compileBooleanMatcher util
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Jun 5, 2024
2 parents 768689f + 1eaca57 commit f09fcaf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,9 @@ module.exports = mergeExports(fn, {
},
get LazySet() {
return require("./util/LazySet");
},
get compileBooleanMatcher() {
return require("./util/compileBooleanMatcher");
}
},

Expand Down
10 changes: 10 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15340,6 +15340,16 @@ declare namespace exports {
export { MEASURE_START_OPERATION, MEASURE_END_OPERATION };
}
export const cleverMerge: <T, O>(first: T, second: O) => T | O | (T & O);
export function compileBooleanMatcher(
map: Record<string | number, boolean>
): boolean | ((arg0: string) => string);
export namespace compileBooleanMatcher {
export let fromLists: (
positiveItems: string[],
negativeItems: string[]
) => (arg0: string) => string;
export let itemsToRegexp: (itemsArr: string[]) => string;
}
export { LazySet };
}
export namespace sources {
Expand Down

0 comments on commit f09fcaf

Please # to comment.