@moneko/react 1.4.4 → 1.4.5

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 +7 -7
package/env.d.ts CHANGED
@@ -133,16 +133,29 @@ declare module '@app/routes' {
133
133
 
134
134
  export default routes;
135
135
  }
136
+
137
+ interface ExampleModuleBase {
138
+ codes: Record<string, string>;
139
+ title?: string;
140
+ description?: string;
141
+ col?: string;
142
+ order?: number;
143
+ [key: string]: unknown;
144
+ }
145
+
136
146
  declare module '@app/example' {
137
- export interface ExampleModule {
138
- codes: Record<string, string>;
139
- title?: string;
140
- description?: string;
141
- col?: string;
142
- order?: number;
147
+ export interface ExampleModule extends ExampleModuleBase {
148
+ [key: string]: unknown;
149
+ }
150
+ const examples: Record<string, () => Promise<{ default: ExampleModule[] }>>;
151
+
152
+ export default examples;
153
+ }
154
+ declare module '@app/example/*' {
155
+ export interface ExampleModule extends ExampleModuleBase {
143
156
  [key: string]: unknown;
144
157
  }
145
- const example: Record<string, ExampleModule[]>;
158
+ const example: ExampleModule[];
146
159
 
147
160
  export default example;
148
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/react",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
15
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
16
- "react-refresh": "0.14.0",
16
+ "react-refresh": "0.14.1",
17
17
  "react-refresh-typescript": "2.0.9",
18
18
  "react-router": "6.23.0",
19
19
  "react-router-dom": "6.23.0",
@@ -23,11 +23,11 @@
23
23
  "@moneko/transform-imports": "0.5.1",
24
24
  "@swc/cli": "0.3.12",
25
25
  "@swc/core": "1.5.0",
26
- "@types/react": "18.2.79",
27
- "@types/react-dom": "18.2.25",
28
- "eslint-config-neko": "2.6.0",
29
- "react": "18.2.0",
30
- "react-dom": "18.2.0",
26
+ "@types/react": "18.3.0",
27
+ "@types/react-dom": "18.3.0",
28
+ "eslint-config-neko": "2.7.1",
29
+ "react": "18.3.0",
30
+ "react-dom": "18.3.0",
31
31
  "typescript": "5.4.5"
32
32
  },
33
33
  "files": [