Skip to content

Commit

Permalink
Exported Type
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanburke committed Dec 20, 2024
1 parent f15e7de commit 5864196
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "functype",
"version": "0.8.40",
"version": "0.8.41",
"description": "A smallish functional library for TypeScript",
"author": "[email protected]",
"license": "MIT",
Expand Down
4 changes: 1 addition & 3 deletions src/list/List.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { AsyncFunctor } from "../functor"
import { IterableType } from "../iterable"
import { None, Option } from "../option/Option"
import { Set } from "../set/Set"
import { Typeable } from "../typeable/Typeable"

type TypeGuard<A, B extends A> = (a: A | undefined) => a is B
import { Typeable, TypeGuard } from "../typeable/Typeable"

type FilterFn<A> = {
<B extends A>(p: TypeGuard<A, B>): List<B>
Expand Down
2 changes: 2 additions & 0 deletions src/typeable/Typeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ export function Typeable<T extends string>(type: T) {
export type Typeable<T extends string> = ReturnType<typeof Typeable<T>>

export type UnTag<T> = Omit<T, "_tag">

export type TypeGuard<A, B extends A> = (a: A | undefined) => a is B

0 comments on commit 5864196

Please sign in to comment.