@@ -130,7 +130,7 @@ local function createReactNoop(reconciler, useMutation: boolean)
130130 parentInstance : Instance ,
131131 child : Instance | TextInstance
132132 ): ()
133- if typeof (parentInstance .rootID ) == " string" then
133+ if typeof (( parentInstance :: any ) .rootID ) == " string" then
134134 -- Some calls to this aren't typesafe.
135135 -- This helps surface mistakes in tests.
136136 error (Error (" appendChild() first argument is not an instance." ))
@@ -172,7 +172,7 @@ local function createReactNoop(reconciler, useMutation: boolean)
172172 child : Instance | TextInstance ,
173173 beforeChild : Instance | TextInstance
174174 )
175- if typeof (parentInstance .rootID ) ~= " string" then
175+ if typeof (( parentInstance :: any ) .rootID ) ~= " string" then
176176 -- Some calls to this aren't typesafe.
177177 -- This helps surface mistakes in tests.
178178 error (Error (" insertBefore() first argument is not an instance." ))
@@ -211,7 +211,7 @@ local function createReactNoop(reconciler, useMutation: boolean)
211211 end
212212
213213 local function removeChild (parentInstance : Instance , child : Instance | TextInstance )
214- if typeof (parentInstance .rootID ) == " string" then
214+ if typeof (( parentInstance :: any ) .rootID ) == " string" then
215215 -- Some calls to this aren't typesafe.
216216 -- This helps surface mistakes in tests.
217217 error (Error (" removeChild() first argument is not an instance." ))
0 commit comments