Skip to content

Commit

Permalink
chore: export FnSchema related function from core
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Aug 6, 2024
1 parent 9b1c974 commit b272f24
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/honest-camels-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@fn-sphere/filter": patch
---

Export `FnSchema`, `StandardFnSchema` and `GenericFnSchema` type from core package.

Export `defineGenericFn` and `defineTypedFn` from core package.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export {
getParametersExceptFirst,
isEqualPath,
} from "./filter/utils.js";
export { createFnSphere, defineTypedFn } from "./fn-sphere.js";
export { createFnSphere, defineGenericFn, defineTypedFn } from "./fn-sphere.js";
export {
booleanFilter,
commonFilters,
Expand Down
5 changes: 5 additions & 0 deletions packages/filter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export {
countNumberOfRules,
createFilterPredicate,
dateFilter,
defineGenericFn,
defineTypedFn,
genericFilter,
numberFilter,
presetFilter,
Expand All @@ -36,6 +38,9 @@ export type {
FilterField,
FilterGroup,
FilterRule,
FnSchema,
GenericFnSchema,
SingleFilter,
StandardFnSchema,
} from "@fn-sphere/core";
export { presetDataInputSpecs } from "./views/data-input-views.js";

0 comments on commit b272f24

Please sign in to comment.