File tree 2 files changed +20
-13
lines changed
2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ export class VueWrapper<T extends ComponentPublicInstance>
20
20
vm : ComponentPublicInstance ,
21
21
setProps ?: ( props : Record < string , any > ) => void
22
22
) {
23
- // TODO Remove cast after Vue releases the fix
24
- this . rootVM = ( vm . $root as any ) as ComponentPublicInstance
23
+ this . rootVM = vm . $root
25
24
this . componentVM = vm as T
26
25
this . __setProps = setProps
27
26
}
@@ -111,10 +110,9 @@ export class VueWrapper<T extends ComponentPublicInstance>
111
110
112
111
setProps ( props : Record < string , any > ) : Promise < void > {
113
112
// if this VM's parent is not the root, error out
114
- // TODO: Remove ignore after Vue releases fix
115
- // @ts -ignore
116
- if ( this . vm . $parent !== this . rootVM )
113
+ if ( this . vm . $parent !== this . rootVM ) {
117
114
throw Error ( 'You can only use setProps on your mounted component' )
115
+ }
118
116
this . __setProps ( props )
119
117
return nextTick ( )
120
118
}
Original file line number Diff line number Diff line change 268
268
dependencies :
269
269
" @babel/types" " ^7.8.3"
270
270
271
- " @babel/helper-validator-identifier@^7.9.0 " :
272
- version "7.9.0 "
273
- resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.0 .tgz#ad53562a7fc29b3b9a91bbf7d10397fd146346ed "
274
- integrity sha512-6G8bQKjOh+of4PV/ThDm/rRqlU7+IGoJuofpagU5GlEl29Vv0RGqqt86ZGRV8ZuSOY3o+8yXl5y782SMcG7SHw ==
271
+ " @babel/helper-validator-identifier@^7.9.0" , "@babel/helper-validator-identifier@^7.9.5" :
272
+ version "7.9.5 "
273
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5 .tgz#90977a8e6fbf6b431a7dc31752eee233bf052d80 "
274
+ integrity sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g ==
275
275
276
276
" @babel/helper-wrap-function@^7.8.3 " :
277
277
version "7.8.3"
830
830
lodash "^4.17.13"
831
831
to-fast-properties "^2.0.0"
832
832
833
- " @babel/types@^7.8.6" , "@babel/types@^7.9.0":
833
+ " @babel/types@^7.8.6 " :
834
+ version "7.9.5"
835
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.5.tgz#89231f82915a8a566a703b3b20133f73da6b9444"
836
+ integrity sha512-XjnvNqenk818r5zMaba+sLQjnbda31UfUURv3ei0qPQw4u+j2jMyJ5b11y8ZHYTRSI3NnInQkkkRT4fLqqPdHg==
837
+ dependencies :
838
+ " @babel/helper-validator-identifier" " ^7.9.5"
839
+ lodash "^4.17.13"
840
+ to-fast-properties "^2.0.0"
841
+
842
+ " @babel/types@^7.9.0 " :
834
843
version "7.9.0"
835
844
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.0.tgz#00b064c3df83ad32b2dbf5ff07312b15c7f1efb5"
836
845
integrity sha512-BS9JKfXkzzJl8RluW4JGknzpiUV7ZrvTayM6yfqLTVBEnFtyowVIOu6rqxRd5cVO6yGoWf4T8u8dgK9oB+GCng==
@@ -1951,9 +1960,9 @@ cssstyle@^2.0.0:
1951
1960
cssom "~0.3.6"
1952
1961
1953
1962
csstype@^2.6.8 :
1954
- version "2.6.9 "
1955
- resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.9 .tgz#05141d0cd557a56b8891394c1911c40c8a98d098 "
1956
- integrity sha512-xz39Sb4+OaTsULgUERcCk+TJj8ylkL4aSVDQiX/ksxbELSqwkgt4d4RD7fovIdgJGSuNYqwZEiVjYY5l0ask+Q ==
1963
+ version "2.6.10 "
1964
+ resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.10 .tgz#e63af50e66d7c266edb6b32909cfd0aabe03928b "
1965
+ integrity sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w ==
1957
1966
1958
1967
dashdash@^1.12.0 :
1959
1968
version "1.14.1"
You can’t perform that action at this time.
0 commit comments