feat: Initial devtools support (#1125)
This commit is contained in:
@@ -622,7 +622,7 @@ describe('emits', () => {
|
||||
defineComponent({
|
||||
emits: {
|
||||
click: (n: number) => typeof n === 'number',
|
||||
input: (b: string) => null
|
||||
input: (b: string) => b.length > 1
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
emit('click', 1)
|
||||
|
||||
@@ -76,11 +76,13 @@ function bailType(arg: HTMLElement | Ref<HTMLElement>) {
|
||||
expectType<HTMLElement>(unref(arg))
|
||||
|
||||
// ref inner type should be unwrapped
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
const nestedRef = ref({ foo: ref(document.createElement('DIV')) })
|
||||
|
||||
expectType<Ref<{ foo: HTMLElement }>>(nestedRef)
|
||||
expectType<{ foo: HTMLElement }>(nestedRef.value)
|
||||
}
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
const el = document.createElement('DIV')
|
||||
bailType(el)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user