Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Commit 6c975b3

Browse files
committed
push
1 parent f0c5017 commit 6c975b3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "https://github.com/MonoidDev/reform"
77
},
88
"private": false,
9-
"version": "1.1.0",
9+
"version": "1.1.1",
1010
"license": "MIT",
1111
"publishConfig": {
1212
"access": "public"

src/types/UtilityTypes.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import { AnyResolver, literal } from '..';
2-
import { union } from './CombinationTypes';
1+
import { AnyResolver } from './infer';
2+
import { TLiteral, literal } from './LiteralType';
33

4-
export const omittable = <R extends AnyResolver>(r: R) =>
5-
union([r, literal(undefined)]);
4+
import { TUnion, union } from './CombinationTypes';
5+
6+
export const omittable = <R extends AnyResolver>(
7+
r: R,
8+
): TUnion<[R, TLiteral<undefined>]> => union([r, literal(undefined)]);

0 commit comments

Comments
 (0)