@codeleap/types 5.8.9 → 5.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/types",
3
- "version": "5.8.9",
3
+ "version": "5.8.10",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  "directory": "packages/types"
10
10
  },
11
11
  "devDependencies": {
12
- "@codeleap/config": "5.8.9",
12
+ "@codeleap/config": "5.8.10",
13
13
  "ts-node-dev": "1.1.8"
14
14
  },
15
15
  "scripts": {
package/package.json.bak CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/types",
3
- "version": "5.8.9",
3
+ "version": "5.8.10",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/src/utility.ts CHANGED
@@ -5,6 +5,8 @@ export type AnyFunction = (...args: any[]) => any
5
5
 
6
6
  export type AnyRecord = Record<string, any>
7
7
 
8
+ export type StringRecord = Record<string, string>
9
+
8
10
  export type ReadOnly<T> = {
9
11
  readonly [Property in keyof T]: T[Property];
10
12
  }
@@ -124,4 +126,8 @@ export type Options<T> = { label: string; value: T }[]
124
126
 
125
127
  export type Option<T> = Options<T>[number]
126
128
 
127
- export type Label = string | ReactNode
129
+ export type Label = string | ReactNode
130
+
131
+ export type ValueOf<T> = T[keyof T]
132
+
133
+ export type Keyof<T> = keyof T