Skip to content

Commit 57b89fc

Browse files
author
RoFlection Bot
committed
APT-606 - Change Foreman To Install Internal Mirrors Instead Of External Tools APT-578 Upgrade setup-foreman to v3 (#390)
* modified setup-foreman to use v3 in all ci * Fix valid type errors ---------
1 parent 3faab3c commit 57b89fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/react-noop-renderer/src/createReactNoop.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)