File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -368,18 +368,6 @@ export default {
368
368
}
369
369
```
370
370
371
- You may also need to augment the ` SetupContext ` when working with TypeScript:
372
-
373
- ``` ts
374
- import Vue from ' vue'
375
-
376
- declare module ' @vue/composition-api' {
377
- interface SetupContext {
378
- readonly refs: { [key : string ]: Vue | Element | Vue [] | Element [] }
379
- }
380
- }
381
- ```
382
-
383
371
</details >
384
372
385
373
### Reactive
Original file line number Diff line number Diff line change 1
- import { VNode , ComponentOptions as Vue2ComponentOptions } from 'vue'
1
+ import Vue , { VNode , ComponentOptions as Vue2ComponentOptions } from 'vue'
2
2
import { Data } from './common'
3
3
import { ComponentPropsOptions , ExtractPropTypes } from './componentProps'
4
4
import { ComponentInstance , ComponentRenderProxy } from './componentProxy'
@@ -25,7 +25,7 @@ export interface SetupContext {
25
25
/**
26
26
* @deprecated not avaliable in Vue 3
27
27
*/
28
- readonly refs : Data
28
+ readonly refs : { [ key : string ] : Vue | Element | Vue [ ] | Element [ ] }
29
29
30
30
emit ( event : string , ...args : any [ ] ) : void
31
31
}
You can’t perform that action at this time.
0 commit comments