@@ -130,7 +130,7 @@ local function createReactNoop(reconciler, useMutation: boolean)
130
130
parentInstance : Instance ,
131
131
child : Instance | TextInstance
132
132
): ()
133
- if typeof (parentInstance .rootID ) == " string" then
133
+ if typeof (( parentInstance :: any ) .rootID ) == " string" then
134
134
-- Some calls to this aren't typesafe.
135
135
-- This helps surface mistakes in tests.
136
136
error (Error (" appendChild() first argument is not an instance." ))
@@ -172,7 +172,7 @@ local function createReactNoop(reconciler, useMutation: boolean)
172
172
child : Instance | TextInstance ,
173
173
beforeChild : Instance | TextInstance
174
174
)
175
- if typeof (parentInstance .rootID ) ~= " string" then
175
+ if typeof (( parentInstance :: any ) .rootID ) ~= " string" then
176
176
-- Some calls to this aren't typesafe.
177
177
-- This helps surface mistakes in tests.
178
178
error (Error (" insertBefore() first argument is not an instance." ))
@@ -211,7 +211,7 @@ local function createReactNoop(reconciler, useMutation: boolean)
211
211
end
212
212
213
213
local function removeChild (parentInstance : Instance , child : Instance | TextInstance )
214
- if typeof (parentInstance .rootID ) == " string" then
214
+ if typeof (( parentInstance :: any ) .rootID ) == " string" then
215
215
-- Some calls to this aren't typesafe.
216
216
-- This helps surface mistakes in tests.
217
217
error (Error (" removeChild() first argument is not an instance." ))
0 commit comments