Skip to content

Commit

Permalink
NonNullable on Required
Browse files Browse the repository at this point in the history
  • Loading branch information
ogroppo committed Sep 24, 2024
1 parent 5cc7c89 commit 86c0d6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# deverything

## 1.6.1

### Patch Changes

- NonNullable on Required

## 1.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deverything",
"version": "1.6.0",
"version": "1.6.1",
"description": "Everything you need for Dev",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/types/Required.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type Required<T> = {
[P in keyof T]-?: T[P];
[P in keyof T]-?: NonNullable<T[P]>;
};

export type PickRequired<T, K extends keyof T> = Required<Pick<T, K>>;

0 comments on commit 86c0d6a

Please sign in to comment.