@oliversalzburg/js-utils
Advanced tools
+15
-0
| /** | ||
| * Describes a function that is a constructor for something. | ||
| * @typeParam TConstructed - The type this is a constructor for. | ||
| * @group Types | ||
| */ | ||
@@ -8,2 +9,3 @@ export type ConstructorOf<TConstructed> = new (...args: Array<any>) => TConstructed; | ||
| * Describes any function. | ||
| * @group Types | ||
| */ | ||
@@ -13,2 +15,3 @@ export type AnyFunction = (...args: Array<any>) => any; | ||
| * Describes any asynchronous function. | ||
| * @group Types | ||
| */ | ||
@@ -18,2 +21,3 @@ export type AnyAsyncFunction = (...args: Array<any>) => Promise<any>; | ||
| * Any constructor | ||
| * @group Types | ||
| */ | ||
@@ -24,2 +28,3 @@ export type AnyConstructor = new (...args: Array<any>) => any; | ||
| * @typeParam TReturned - The type of the item returned by the function. | ||
| * @group Types | ||
| */ | ||
@@ -30,2 +35,3 @@ export type AnyFunctionReturning<TReturned = any> = (...args: Array<any>) => TReturned; | ||
| * @typeParam TReturned - The type of the item returned by the function. | ||
| * @group Types | ||
| */ | ||
@@ -40,3 +46,12 @@ export type AnyAsyncFunctionReturning<TReturned = any> = (...args: Array<any>) => TReturned; | ||
| * mixed in with. | ||
| * @group Types | ||
| */ | ||
| export type Mixin<TTarget extends AnyFunctionReturning> = InstanceType<ReturnType<TTarget>>; | ||
| /** | ||
| * Recursive definition of a regular JS object, which is a key-value hash | ||
| * of strings to primitives, or another object of the same type. | ||
| * @group Types | ||
| */ | ||
| export type JsonObject = string | number | boolean | null | Array<JsonObject> | { | ||
| [key: string]: JsonObject; | ||
| }; |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@oliversalzburg/js-utils", | ||
| "version": "0.0.23-dev.2", | ||
| "version": "0.0.23-dev.3", | ||
| "license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Oliver Salzburg <oliver.salzburg@gmail.com>", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
392295
0.1%6950
0.22%