@codeleap/types 5.4.4 → 5.4.5

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.4.4",
3
+ "version": "5.4.5",
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.4.4",
12
+ "@codeleap/config": "5.4.5",
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.4.4",
3
+ "version": "5.4.5",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/src/utility.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react'
1
2
  import { Prev } from './pathMapping'
2
3
  /* eslint-disable no-unused-vars */
3
4
  export type AnyFunction = (...args: any[]) => any
@@ -121,4 +122,6 @@ export type SecondToLastArguments<T extends AnyFunction> = T extends ((...args:
121
122
 
122
123
  export type Options<T> = { label: string; value: T }[]
123
124
 
124
- export type Option<T> = Options<T>[number]
125
+ export type Option<T> = Options<T>[number]
126
+
127
+ export type Label = string | ReactNode