Skip to content

Commit 26cc483

Browse files
HELWATANYcloydlau
andauthored
types: improve the type of Record key
* fix(vue-type-check): fix vue type check issues - 🏷️ Added helper type `EditorMode` - 🏷️ Added the `boolAttrs` explicitly to the props to enhance type check - 🐛 Fixed vue type check errors * refactor(vue-type-check): revert unrelated changes - Updated the `propsGlobal` and `attrsGlobal` record key type to `string | number | symbol` - ⏪ Revert model value type. - ⏪ Revert `booleanAttrs` - ⏪ Use the `Mode` enum and remove `EditorMode` type. * Revert "refactor(vue-type-check): revert unrelated changes" This reverts commit 200cfa6. * Revert "fix(vue-type-check): fix vue type check issues" This reverts commit 301a749. * types: improve the type of Record key --------- Co-authored-by: Cloyd Lau <31238760+cloydlau@users.noreply.github.com>
1 parent 16d562f commit 26cc483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import type { App, PropType } from 'vue-demi'
66
import { conclude, resolveConfig } from 'vue-global-config'
77
import { PascalCasedName as name } from '../package.json'
88

9-
const propsGlobal: Record<keyof any, any> = {}
10-
const attrsGlobal: Record<keyof any, any> = {}
9+
const propsGlobal: Record<string, any> = {}
10+
const attrsGlobal: Record<string, any> = {}
1111
const modeDefault = 'tree'
1212
const modelValueProp = isVue3 ? 'modelValue' : 'value'
1313
const updateModelValue = isVue3 ? 'update:modelValue' : 'input'

0 commit comments

Comments
 (0)