revojs 0.0.31 → 0.0.32
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 +2 -2
- package/src/types/index.d.ts +23 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "revojs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "coverbase/revojs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"module": "./dist/index.js",
|
|
26
26
|
"main": "./dist/index.js",
|
|
27
|
-
"files": ["dist", "src/
|
|
27
|
+
"files": ["dist", "src/types"],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "rolldown -c rolldown.config.ts && tsc",
|
|
30
30
|
"watch": "rolldown -w -c rolldown.config.ts && tsc --watch"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare module "#virtual/locales" {
|
|
2
|
+
export const locales: Record<string, () => Promise<Record<string, string>>>;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module "#virtual/assets" {
|
|
6
|
+
export const assets: Record<string, () => Promise<T>>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module "#virtual/client" {
|
|
10
|
+
import type { Slot } from "revojs";
|
|
11
|
+
|
|
12
|
+
export const client: Slot;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare module "#virtual/routes" {
|
|
16
|
+
export const routes: Record<string, () => Promise<T>>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module "#virtual/runtime" {
|
|
20
|
+
import type { Runtime } from "revojs";
|
|
21
|
+
|
|
22
|
+
export const runtime: Runtime<T>;
|
|
23
|
+
}
|