@n3rdw1z4rd/core 0.1.0 → 0.2.0
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 -2
- package/src/types.d.ts +39 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n3rdw1z4rd/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "core library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"src/types.d.ts"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build": "tsup",
|
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare type UV = [number, number];
|
|
2
|
+
declare type VEC2 = [number, number];
|
|
3
|
+
declare type VEC3 = [number, number, number];
|
|
4
|
+
declare type VEC4 = [number, number, number, number];
|
|
5
|
+
|
|
6
|
+
declare type KeyValue = { [key: string]: any };
|
|
7
|
+
|
|
8
|
+
type JSONValue =
|
|
9
|
+
| string
|
|
10
|
+
| number
|
|
11
|
+
| boolean
|
|
12
|
+
| null
|
|
13
|
+
| JSONValue[]
|
|
14
|
+
| { [key: string]: JSONValue };
|
|
15
|
+
|
|
16
|
+
declare type DataJson = {
|
|
17
|
+
[k: string]: JSONValue,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// interface JSONObject {
|
|
21
|
+
// [k: string]: JSONValue
|
|
22
|
+
// }
|
|
23
|
+
|
|
24
|
+
// interface JSONArray extends Array<JSONValue> { }
|
|
25
|
+
|
|
26
|
+
declare module "*.glsl" {
|
|
27
|
+
const value: string;
|
|
28
|
+
export default value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare module "*.vert" {
|
|
32
|
+
const value: string;
|
|
33
|
+
export default value;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare module "*.frag" {
|
|
37
|
+
const value: string;
|
|
38
|
+
export default value;
|
|
39
|
+
}
|