@moneko/solid 1.7.5 → 1.7.6

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.
Files changed (2) hide show
  1. package/env.d.ts +20 -7
  2. package/package.json +2 -2
package/env.d.ts CHANGED
@@ -132,16 +132,29 @@ declare module '@app/routes' {
132
132
 
133
133
  export default routes;
134
134
  }
135
+
136
+ interface ExampleModuleBase {
137
+ codes: Record<string, string>;
138
+ title?: string;
139
+ description?: string;
140
+ col?: string;
141
+ order?: number;
142
+ [key: string]: unknown;
143
+ }
144
+
135
145
  declare module '@app/example' {
136
- export interface ExampleModule {
137
- codes: Record<string, string>;
138
- title?: string;
139
- description?: string;
140
- col?: string;
141
- order?: number;
146
+ export interface ExampleModule extends ExampleModuleBase {
147
+ [key: string]: unknown;
148
+ }
149
+ const examples: Record<string, () => Promise<{ default: ExampleModule[] }>>;
150
+
151
+ export default examples;
152
+ }
153
+ declare module '@app/example/*' {
154
+ export interface ExampleModule extends ExampleModuleBase {
142
155
  [key: string]: unknown;
143
156
  }
144
- const example: Record<string, ExampleModule[]>;
157
+ const example: ExampleModule[];
145
158
 
146
159
  export default example;
147
160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/solid",
3
- "version": "1.7.5",
3
+ "version": "1.7.6",
4
4
  "description": "Solid js",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  "@swc/cli": "0.3.12",
21
21
  "@swc/core": "1.4.11",
22
22
  "solid-js": "1.8.16",
23
- "typescript": "5.4.3"
23
+ "typescript": "5.3.3"
24
24
  },
25
25
  "files": [
26
26
  "lib",