Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export compileBooleanMatcher util #18327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -15337,6 +15337,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