@purr-core/utils.definitions 0.0.10 → 0.0.11
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 +3 -1
- package/dist/_interfaces.d.ts +0 -11
- package/dist/_types.d.ts +0 -28
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purr-core/utils.definitions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"dev": "vite build --watch",
|
|
33
33
|
"build": "tsc && vite build",
|
|
34
|
+
"build:vite": "tsc && vite build",
|
|
35
|
+
"build:tsup": "tsup",
|
|
34
36
|
"lint": "eslint . --ext ts,tsx --max-warnings 0"
|
|
35
37
|
}
|
|
36
38
|
}
|
package/dist/_interfaces.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TAny } from './_types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents an extendable object where keys are strings and values can be of any type.
|
|
5
|
-
*
|
|
6
|
-
* @interface IExtendable
|
|
7
|
-
* @template TAny - The type of the values in the extendable object.
|
|
8
|
-
*/
|
|
9
|
-
export interface IExtendable {
|
|
10
|
-
[key: string]: TAny;
|
|
11
|
-
}
|
package/dist/_types.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A type alias for `any`. This type can represent any value.
|
|
3
|
-
*
|
|
4
|
-
* @remarks
|
|
5
|
-
* Use this type with caution as it disables type checking for the value it is assigned to.
|
|
6
|
-
*/
|
|
7
|
-
export type TAny = any;
|
|
8
|
-
/**
|
|
9
|
-
* A type representing a function that iterates over an array.
|
|
10
|
-
*
|
|
11
|
-
* @template T - The type of elements in the array.
|
|
12
|
-
* @param value - The current element being processed in the array.
|
|
13
|
-
* @param index - The index of the current element being processed in the array.
|
|
14
|
-
* @param array - The array that `TIterator` is iterating over.
|
|
15
|
-
* @returns An unknown value.
|
|
16
|
-
*/
|
|
17
|
-
export type TIterator = <T>(value: T, index?: number, array?: T[]) => unknown;
|
|
18
|
-
/**
|
|
19
|
-
* Represents the boundary of an asynchronous operation, encapsulating both the result and any potential error.
|
|
20
|
-
*
|
|
21
|
-
* @template T - The type of the result.
|
|
22
|
-
* @property {unknown | null} error - The error encountered during the asynchronous operation, if any.
|
|
23
|
-
* @property {T | null} result - The result of the asynchronous operation, if successful.
|
|
24
|
-
*/
|
|
25
|
-
export type TAsyncBoundary<T> = {
|
|
26
|
-
error: unknown | null;
|
|
27
|
-
result: Awaited<T> | null;
|
|
28
|
-
};
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|