-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# deverything | ||
|
||
## 0.37.0 | ||
|
||
### Minor Changes | ||
|
||
- map generics | ||
|
||
## 0.36.0 | ||
|
||
### Minor Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// I don't like the Dict keyword, but it's a possibility... | ||
export type HashMapKey = string | number | symbol; | ||
export type HashMap<T> = Record<HashMapKey, T>; | ||
export type NumberMap = Record<HashMapKey, number>; | ||
export type StringMap = Record<HashMapKey, string>; | ||
export type BoolMap = Record<HashMapKey, boolean>; | ||
export type TrueMap = Record<HashMapKey, true>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export type ObjectValue<T> = T[keyof T]; | ||
export type ObjectValues<T> = ObjectValue<T>[]; | ||
export type ObjectKey<T> = keyof T; | ||
export type ObjectKeys<T> = ObjectKey<T>[]; | ||
export type ObjectValue<T> = T[keyof T]; | ||
export type ObjectValues<T> = ObjectValue<T>[]; | ||
// ObjectEntry needed? | ||
export type ObjectEntries<T> = { [K in keyof T]: [K, T[K]] }[keyof T][]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters