Skip to content

Commit

Permalink
Merge pull request #90 from ahrjarrett/@ahrjarrett/v0.40.14
Browse files Browse the repository at this point in the history
fix: export `filter` and `filterKeys` from `object` module
  • Loading branch information
ahrjarrett authored Apr 29, 2024
2 parents 42f5831 + 77e9cfd commit 8c829a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-turtles-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"any-ts": patch
---

export `filter` and `filterKeys` from `object` module
2 changes: 1 addition & 1 deletion src/object/exports.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export type * as object from "./object"
export * as object from "./object"
3 changes: 3 additions & 0 deletions src/object/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export declare namespace signature {
}
}

export type filter<t, bound> = filter.values<t, bound>
export type filterKeys<t, bound extends any.index> = filter.keys<t, bound>

export declare namespace filter {
type keys<t, bound extends any.index> = never |
eval<
Expand Down

0 comments on commit 8c829a6

Please sign in to comment.