Add apply()

This commit is contained in:
Aaron Smith 2023-08-22 13:52:55 +01:00
parent c82ec25efe
commit 07ae542e28

View file

@ -6,6 +6,7 @@
if not game then script = require "test/relative-string" end if not game then script = require "test/relative-string" end
local create = require(script.create) local create = require(script.create)
local apply = require(script.apply)
local source = require(script.source) local source = require(script.source)
local watch = require(script.watch) local watch = require(script.watch)
local cleanup, clean_garbage = require(script.cleanup)() local cleanup, clean_garbage = require(script.cleanup)()
@ -41,6 +42,14 @@ local vide = {
-- flags -- flags
strict = (nil :: any) :: boolean, strict = (nil :: any) :: boolean,
-- temporary
apply = function(instance: Instance)
return function(props: { [any]: any })
apply(instance, props)
return instance
end
end,
-- runtime -- runtime
step = function(dt: number) step = function(dt: number)
-- debug.profilebegin("VIDE STEP") -- debug.profilebegin("VIDE STEP")