@codeleap/types
Advanced tools
+4
-4
| { | ||
| "name": "@codeleap/types", | ||
| "version": "4.3.9", | ||
| "version": "5.0.0", | ||
| "main": "src/index.ts", | ||
@@ -12,3 +12,3 @@ "license": "UNLICENSED", | ||
| "devDependencies": { | ||
| "@codeleap/config": "4.3.9", | ||
| "@codeleap/config": "5.0.0", | ||
| "ts-node-dev": "1.1.8" | ||
@@ -20,5 +20,5 @@ }, | ||
| "peerDependencies": { | ||
| "typescript": "5.0.4", | ||
| "react": "18.1.0" | ||
| "typescript": "5.5.2", | ||
| "react": "18.2.0" | ||
| } | ||
| } |
@@ -58,1 +58,5 @@ import { AnyFunction } from './utility' | ||
| } | ||
| export function isPromise(x): x is Promise<any> { | ||
| return isFunction(x?.then) && isFunction(x?.catch) | ||
| } |
+6
-0
@@ -119,1 +119,7 @@ import { Prev } from './pathMapping' | ||
| export type LogType = 'info' | 'debug' | 'warn' | 'error' | 'log' | 'silent' | ||
| export type SecondToLastArguments<T extends AnyFunction> = T extends ((...args: [infer _, ...infer Rest]) => any) ? Rest : never | ||
| export type Options<T> = { label: string; value: T }[] | ||
| export type Option<T> = Options<T>[number] |
Sorry, the diff of this file is not supported yet
12405
2.77%425
0.95%