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

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayashiki committed Mar 20, 2022
1 parent f0c5017 commit 6c975b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/MonoidDev/reform"
},
"private": false,
"version": "1.1.0",
"version": "1.1.1",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down
11 changes: 7 additions & 4 deletions src/types/UtilityTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { AnyResolver, literal } from '..';
import { union } from './CombinationTypes';
import { AnyResolver } from './infer';
import { TLiteral, literal } from './LiteralType';

export const omittable = <R extends AnyResolver>(r: R) =>
union([r, literal(undefined)]);
import { TUnion, union } from './CombinationTypes';

export const omittable = <R extends AnyResolver>(
r: R,
): TUnion<[R, TLiteral<undefined>]> => union([r, literal(undefined)]);

1 comment on commit 6c975b3

@vercel
Copy link

@vercel vercel bot commented on 6c975b3 Mar 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

The most recent charge for your active payment method has failed. Please update it here: https://vercel.com/teams/monoid-dev/settings/billing.

Please sign in to comment.