@moneko/solid 1.0.1 → 1.0.2

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 +4 -12
  2. package/package.json +1 -1
package/env.d.ts CHANGED
@@ -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
- | 'onChange'
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/solid",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Solid js",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {