mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
This commit is contained in:
parent
7cdcebf03c
commit
fab66a9d6b
16 changed files with 1 additions and 61 deletions
|
|
@ -1,7 +1,3 @@
|
|||
------------------------------------------------------------------------------------------
|
||||
-- vide/Change.lua
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = (require :: any) "test/wrap-require" end
|
||||
|
||||
local memoize = require(script.Parent.memoize)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
------------------------------------------------------------------------------------------
|
||||
-- vide/apply.lua
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then
|
||||
script = (require :: any) "test/wrap-require"
|
||||
typeof = require "test/mock".typeof
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/bind.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
local warn = warn -- todo
|
||||
|
||||
if not game then
|
||||
|
|
@ -9,7 +5,6 @@ if not game then
|
|||
warn = print
|
||||
end
|
||||
|
||||
|
||||
local graph = require(script.Parent.graph)
|
||||
type Node<T> = graph.Node<T>
|
||||
local get = graph.get
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
------------------------------------------------------------------------------------------
|
||||
-- vide/cleanup.lua
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = require "test/wrap-require" end
|
||||
|
||||
-- todo: verify correct behavior in non-standard usage
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/create.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then
|
||||
script = (require :: any) "test/wrap-require"
|
||||
Instance = require("test/mock").Instance
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/defaults.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- todo
|
||||
local Enum = Enum
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
------------------------------------------------------------------------------------------
|
||||
-- vide/derive.lua
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = (require :: any) "test/wrap-require" end
|
||||
|
||||
local graph = require(script.Parent.graph)
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
--------------------------------------------------------------------------------------------------------------------------------
|
||||
-- vide/flags.lua
|
||||
--------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
return { strict = false }
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/graph.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = (require :: any) "test/wrap-require" end
|
||||
|
||||
local flags = require(script.Parent.flags)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide.lua
|
||||
-- vide.luau
|
||||
-- v0.1.0
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/map.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = (require :: any) "test/wrap-require" end
|
||||
|
||||
local graph = require(script.Parent.graph)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/memoize.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
local function memoize<X, Y>(f: (X) -> Y): ((X) -> Y, { [X]: Y })
|
||||
local cache: { [X]: Y } = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
------------------------------------------------------------------------------------------
|
||||
-- vide/wrap.lua
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = require "test/wrap-require" end
|
||||
|
||||
local graph = require(script.Parent.graph)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/spring.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = (require :: any) "test/wrap-require" end
|
||||
|
||||
--[[
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
------------------------------------------------------------------------------------------
|
||||
-- vide/throw.lua
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
local function throw(msg: string)
|
||||
local stack = 1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
--------------------------------------------------------------------------------------------------------------
|
||||
-- vide/watch.lua
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if not game then script = (require :: any) "test/wrap-require" end
|
||||
|
||||
local graph = require(script.Parent.graph)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue