Skip to content

Commit

Permalink
feat: add required() and requiredDeep()
Browse files Browse the repository at this point in the history
from `unpartial`
  • Loading branch information
unional authored May 12, 2019
1 parent c2b88ff commit 269bcd0
Show file tree
Hide file tree
Showing 5 changed files with 4,730 additions and 725 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ workflows:
- node6:
requires:
- node-latest
- size-limit:
requires:
- node-latest
- release:
filters:
branches:
Expand Down Expand Up @@ -101,6 +104,15 @@ jobs:
- run: npm run verify
- store_test_results:
path: .reports/junit
size-limit:
docker:
- image: 'circleci/node:latest-browsers'
steps:
- checkout
- attach_workspace:
at: '.'
- run: npm run build
- run: npm run size
release:
docker:
- image: circleci/node:11
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Provides additional types and type adjusted utilities for `typescript`
- `PartialExcept<T, U>`: makes the properties not specified in `U` becomes optional.
- `RecursivePartial<T>`: make type `T` optional recursively.
- `RecursiveRequired<T>`: make type `T` required recursively.
- `required(...)`: merge options and removing `Partial<T>`. From [`unpartial`](https://github.com/unional/unpartial)
- `requiredDeep(...)`: merge options deeply and removing `Partial<T>`. From [`unpartial`](https://github.com/unional/unpartial)
- `RequiredPick<T, U>`: makes the properties specified in `U` becomes required.
- `RequiredExcept<T, U>`: makes the properties not specified in `U` becomes required.
- `RecursiveIntersect<T, U>`: intersect type `U` onto `T` recursively.
Expand Down
Loading

0 comments on commit 269bcd0

Please sign in to comment.