Commit 9196bb0
types: add component type to in-component guards (#2382)
Added support for resolving vm in the next((vm)=>{}) call.
```
@component<Test>({
beforeRouteEnter(to, from, next) {
next((vm) => {
vm.testBool = true; //TypeScript resolved this field.
});
},
})
export default class Test extends Vue {
public testBool: boolean = false;
}
```
1 parent 99c4436 commit 9196bb0
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
0 commit comments