Skip to content

Commit

Permalink
Required and PickRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
ogroppo committed Sep 24, 2024
1 parent cae7e9f commit 5cc7c89
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
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.0

### Minor Changes

- Required and PickRequired Generics

## 1.5.4

### Patch 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.5.4",
"version": "1.6.0",
"description": "Everything you need for Dev",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
5 changes: 5 additions & 0 deletions src/types/Required.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export type Required<T> = {
[P in keyof T]-?: T[P];
};

export type PickRequired<T, K extends keyof T> = Required<Pick<T, K>>;
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export * from "./NonUndefined";
export * from "./Object";
export * from "./Point";
export * from "./PrismaSelect";
export * from "./Required";
export * from "./Serialized";
export * from "./WithDatey";

0 comments on commit 5cc7c89

Please sign in to comment.