@moneko/solid 1.0.1 → 1.0.3
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/env.d.ts +5 -13
- package/package.json +1 -1
package/env.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare module '@app' {
|
|
|
44
44
|
/** 应用版本 */
|
|
45
45
|
version: string;
|
|
46
46
|
/** 应用类型 */
|
|
47
|
-
type: '
|
|
47
|
+
type: 'mobile' | 'site' | 'backstage' | 'micro' | 'library';
|
|
48
48
|
/** 开发者 */
|
|
49
49
|
author: {
|
|
50
50
|
name: string;
|
|
@@ -81,6 +81,7 @@ declare module '@app/routes' {
|
|
|
81
81
|
export interface RouteConfig extends IRouteDefinition {
|
|
82
82
|
/** 菜单id */
|
|
83
83
|
key?: string;
|
|
84
|
+
value?: string;
|
|
84
85
|
path: string;
|
|
85
86
|
/** 菜单图标 */
|
|
86
87
|
icon?: string;
|
|
@@ -200,20 +201,11 @@ type IOmit<T, Keys extends keyof T> = Omit<T, Keys> & {
|
|
|
200
201
|
[K in Keys]?: ICustomEvent<T, K>;
|
|
201
202
|
};
|
|
202
203
|
|
|
203
|
-
type CustomElement<T extends Partial<ICustomElement> = ICustomElement> = IOmit<
|
|
204
|
+
type CustomElement<T extends Partial<ICustomElement> = ICustomElement, E = 'onChange'> = IOmit<
|
|
204
205
|
T,
|
|
205
|
-
|
|
206
|
-
| 'onOpenChange'
|
|
207
|
-
| 'onErrorRecorder'
|
|
208
|
-
| 'onStopRecorder'
|
|
209
|
-
| 'onStartRecorder'
|
|
210
|
-
| 'onRecorderDataAvailable'
|
|
211
|
-
| 'onErrorCapture'
|
|
212
|
-
| 'onStopCapture'
|
|
213
|
-
| 'onStartCapture'
|
|
214
|
-
| 'onSaveRecorder'
|
|
206
|
+
E
|
|
215
207
|
> & {
|
|
216
|
-
ref?: CustomElement<T> | { current: CustomElement<T> | null };
|
|
208
|
+
ref?: CustomElement<T, E> | { current: CustomElement<T, E> | null };
|
|
217
209
|
shadowRoot?: ShadowRoot | Element | null;
|
|
218
210
|
offsetWidth?: number;
|
|
219
211
|
part?: string;
|