repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/adapters/lute/task.luau
luau
.luau
-- @lute/task conformance, per submodules/lute/definitions/task.luau. local task = require("@lute/task") local time = require("@lute/time") local function check(cond: boolean, msg: string) if not cond then error(msg, 2) end end -- wait returns elapsed and accepts Durations local waited = task.wait(0.05) check(typ...
400
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/adapters/lute/time.luau
luau
.luau
-- @lute/time conformance, per submodules/lute/definitions/time.luau. local task = require("@lute/task") local time = require("@lute/time") local function check(cond: boolean, msg: string) if not cond then error(msg, 2) end end -- Instants: now/since/elapsed, ordering, subtraction to Duration local a = time.now()...
570
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/context-project/src/ReplicatedStorage/globalState.luau
luau
.luau
return { value = "original" }
8
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/context-project/src/ServerScriptService/globalStateMutater.server.luau
luau
.luau
local globalState = require(game.ReplicatedStorage.globalState) globalState.value = "mutated"
21
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/cross-dir.luau
luau
.luau
local greeting = require("../shared/greeting") return greeting.message
13
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/directive-bundle.luau
luau
.luau
-- @rodeo run local io = require("@rodeo/io") local stream = require("@rodeo/stream") stream.write(io.stdout, "directive_ok\n") return "directive_ok"
39
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/ext-main.luau
luau
.luau
local helper = require("./helper") return helper.value
11
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/helper.luau
luau
.luau
return { value = "from_helper" }
9
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/lib/init.luau
luau
.luau
local utils = require("@self/utils") return utils
11
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/lib/utils.luau
luau
.luau
return { value = "nested_ok" }
9
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/mixed-requires.luau
luau
.luau
local io = require("@rodeo/io") local stream = require("@rodeo/stream") local helper = require("./helper") local process = require("@lune/process") stream.write(io.stdout, "mixed:" .. helper.value .. ":" .. process.cwd .. "\n") return "mixed_ok"
59
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/nested-main.luau
luau
.luau
local lib = require("./lib") return lib.value
11
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/no-deps.luau
luau
.luau
return "no_deps_ok"
6
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/packages/chain/deep.luau
luau
.luau
return { value = "ok" }
8
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/packages/chain/init.luau
luau
.luau
local deep = require("@self/deep") return { value = "transitive_" .. deep.value }
21
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/packages/mathlib/add.luau
luau
.luau
return function(a: number, b: number): number return a + b end
19
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/packages/mathlib/init.luau
luau
.luau
local add = require("@self/add") local multiply = require("@self/multiply") return { add = add, multiply = multiply }
27
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/packages/mathlib/multiply.luau
luau
.luau
return function(a: number, b: number): number return a * b end
19
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/pkg-internal.luau
luau
.luau
local mathlib = require("./packages/mathlib") return tostring(mathlib.add(2, 3))
21
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/rodeo-alias.luau
luau
.luau
local fs = require("@rodeo/fs") local io = require("@rodeo/io") local stream = require("@rodeo/stream") stream.write(io.stdout, "resolved\n") return "alias_ok"
41
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/sourcemap-test/main.luau
luau
.luau
local helper = require("./helper") local ok, mylib = pcall(require, "./packages/mylib") local tag = if ok then mylib.tag else "skipped" return "sm:" .. tag .. ":" .. helper.value
48
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/sourcemap-test/packages/mylib/init.luau
luau
.luau
return { tag = "from_mylib" }
10
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/resolve/transitive.luau
luau
.luau
local chain = require("./packages/chain") return chain.value
13
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/shared/greeting.luau
luau
.luau
return { message = "cross_dir_ok" }
10
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/traversal-project/src/ReplicatedStorage/deep/child.luau
luau
.luau
local leaf = require("../leaf") return { value = "original", leaf = leaf }
18
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/traversal-project/src/ReplicatedStorage/deep/init.luau
luau
.luau
local child = require("@self/child") return { value = "original", child = child }
20
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/traversal-project/src/ReplicatedStorage/mid.luau
luau
.luau
local leaf = require("./leaf") return { value = "original", leaf = leaf }
18
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/fixtures/traversal-project/src/ServerScriptService/mutator.server.luau
luau
.luau
local leaf = require(game.ReplicatedStorage.leaf) local mid = require(game.ReplicatedStorage.mid) local deep = require(game.ReplicatedStorage.deep) leaf.value = "mutated" mid.value = "mutated" deep.value = "mutated" deep.child.value = "mutated"
63
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/utils/executionTests.ts
roblox-ts
.ts
// Shared execution test cases — port of tests/utils/executionTests.luau. // Each module is a function taking a `run(opts)` closure that executes against // some DOM (caller chooses: edit:plugin, test:server, run:server, etc). Mode // transitions are driven by opts.target on every runCode dispatch, so factories // neve...
9,052
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/utils/pkgTests.ts
roblox-ts
.ts
// Shared @rodeo/* API test cases — port of tests/utils/pkgTests.luau. // Each module is a function taking a `run(opts)` closure that executes against // some DOM. No case names or script sources are modified from the lute version. import { it, expect } from "bun:test"; import { readFileSync, rmSync } from "node:fs"; ...
6,859
revvy02/rodeo
revvy02-rodeo-1e37c02/tests-new/utils/profiling.ts
roblox-ts
.ts
import { existsSync, readdirSync, readFileSync } from "node:fs"; import { join } from "node:path"; import { expect } from "bun:test"; export { extractMarker } from "./markers.js"; /** * Heartbeat-loop script that emits a per-frame `debug.profilebegin(marker)` / * `profileend()` for ~5s. The marker is a fresh GUID m...
949
evilbocchi/alyanum
evilbocchi-alyanum-331b5e5/bench/EternityNum.luau
luau
.luau
--!native --!optimize 2 --!nocheck -- Made by FoundForces - CommanderSalty#2800 --// Config local expl = 1e10 -- exponent limit local ldown = math.log10(expl) -- val for layer down local msd = 100 -- max sig digits local AllowOverflow = true -- if this is true functions like to scientific will go to some other short ...
10,044
evilbocchi/alyanum
evilbocchi-alyanum-331b5e5/bench/OmegaNum.luau
luau
.luau
--!nocheck -- Making OmegaNum -- By: FoundForces (CommanderSalty#4975) -- Limit will be 10↑↑↑...↑↑↑10 with 1e3? ↑'s -- Big thanks / Credits to [REDACTED] for help with errorcorrect and for lbencode and lbdecode! --Config-- local NAN = 0 / 0 -- NAN constant. local INF = 2e308 -- INF constant. local paraForCorrect = 2 -...
17,197
evilbocchi/alyanum
evilbocchi-alyanum-331b5e5/release.luau
luau
.luau
local roblox = require("@lune/roblox") local fs = require("@lune/fs") print("Packaging src into AlyaNum.rbxm...") if not fs.isDir("src") then error("src directory not found") end local sourceFile = "src/init.luau" if not fs.isFile(sourceFile) then error("src/init.luau not found") end local source = fs.readF...
155
evilbocchi/alyanum
evilbocchi-alyanum-331b5e5/src/init.luau
luau
.luau
--!optimize 2 --!native --[[ AlyaNum: Library for performing mathematical operations on numbers exceeding 2^1024. Implements a number system with support for hyperoperations (tetration, pentation, etc.) and extremely large values. ]] --- The number of decimal points to use when formatting numbers. local DECIMAL_POINT...
25,001
vantoanvh/LuauParser
vantoanvh-LuauParser-feca7f0/Parser/Confusables.luau
luau
.luau
--!optimize 2 --!strict return { [34] = '"', [48] = "O", [49] = "l", [73] = "l", [96] = "'", [109] = "rn", [124] = "l", [160] = " ", [180] = "'", [184] = ",", [198] = "AE", [215] = "x", [230] = "ae", [305] = "i", [306] = "lJ", [307] = "ij", [329] = "'n", [338] = "OE", [339] = "oe", [383] = "f", [3...
16,167
ohzw/roblox-dev-skills
ohzw-roblox-dev-skills-8eb7488/.claude/skills/building-3d-objects/scripts/validate.luau
luau
.luau
-- Roblox Object Validation Script -- Usage: Execute this script via mcp__roblox__run_code after completing a build. local TARGET_MODEL_NAME = "YourModelNameHere" -- AI: Update this before running local model = workspace:FindFirstChild(TARGET_MODEL_NAME) if not model then print("[ERROR] Model '" .. TARGET_MODEL_N...
479
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/GJK.lua
luau
.lua
local MAX_TRIES = 20 local ZERO3 = Vector3.new(0, 0, 0) -- Class local GJK = {} GJK.__index = GJK -- Private Functions local function tripleProduct(a, b, c) return b * c:Dot(a) - a * c:Dot(b) end local function containsOrigin(self, simplex, direction) local a = simplex[#simplex] local ao = -a if (#simplex == 4) th...
850
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/Supports.lua
luau
.lua
local ZERO = Vector3.new(0, 0, 0) local RIGHT = Vector3.new(1, 0, 0) -- local function rayPlane(p, v, s, n) local r = p - s; local t = -r:Dot(n) / v:Dot(n) return p + t * v, t end; -- local Supports = {} function Supports.PointCloud(set, direction) local max, maxDot = set[1], set[1]:Dot(direction) for i = 2, #set...
358
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/Vertices.lua
luau
.lua
-- CONSTANTS local PI2 = math.pi*2 local PHI = (1 + math.sqrt(5)) / 2 local RIGHT = Vector3.new(1, 0, 0) local UP = Vector3.new(0, 1, 0) local BACK = Vector3.new(0, 0, 1) local LEFT = Vector3.new(-1, 0, 0) local DOWN = Vector3.new(0, -1, 0) local FORWARD = Vector3.new(0, 0, -1) local CORNERS = { Vector3.new...
1,634
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/init.lua
luau
.lua
-- TAKEN FROM https://www.roblox.com/library/3686163417/Rotated-Region3-GJK -- PACKAGE UPDATED SINCE MAY 02, 2020 12:15:45 PM --[[ This is a Rotated Region3 Class that behaves much the same as the standard Region3 class expect that it allows for both rotated regions and also a varying array of shapes. API: Constructo...
2,345
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/commify.luau
luau
.luau
local function commify(self, number) assert(type(number) == 'number', 'Attempt to commify a non-number value') local formatted = tostring(number) while true do local newFormatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') formatted = newFormatted if k == 0 then break end end return format...
103
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/init.luau
luau
.luau
local DEFAULT_SUFFIX_TABLE = { "k", "M", "B", "T", "Qd", "Qn", "Sx", "Sp", "O", "N", "De", "Ud", "DD", "tdD", "QnD", "SxD", "SpD", "OcD", "NvD", "VgN", "UvG", "DvG", "TvG", "QtV", "QnV", "SeV", "SpG", "OvG", "NvG", "TgN", "UtG", "DtG", "TsTg", "QtTg", "QnTg", "SsTg", "SpTg", "OcTg"...
413
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/jest.config.lua
luau
.lua
return { testMatch = { "**/*.spec" }, }
12
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/numberToString.luau
luau
.luau
local function round(number, decimalPlaces, roundDown) number = number * 10 ^ decimalPlaces if roundDown then return math.floor(number) / 10 ^ decimalPlaces else number = tonumber(string.format("%.14g", number)) -- cast to string and back to number to give some epsilon for floating point numbers --[[ e.g.: ...
568
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/numbersToSortedString.luau
luau
.luau
-- Credits to Coreccii for this method local hexToBin = { ["0"] = "0000", ["1"] = "0001", ["2"] = "0010", ["3"] = "0011", ["4"] = "0100", ["5"] = "0101", ["6"] = "0110", ["7"] = "0111", ["8"] = "1000", ["9"] = "1001", ["A"] = "1010", ["B"] = "1011", ["C"] = "1100", ["D"] = "1101", ["E"] = "1110", ["F"] ...
900
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/runTests.story.luau
luau
.luau
-- Disable ANSI colors from Jest _G.NOCOLOR = true local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerScriptService = game:GetService("ServerScriptService") local runCLI = require(ReplicatedStorage.DevPackages.Jest).runCLI local processServiceExists, ProcessService = pcall(function() return ...
266
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/setSetting.luau
luau
.luau
local function setSetting(self, settingName, settingValue) if not (settingName and settingValue ~= nil and type(settingName) == 'string') then error('setSetting had invalid parameters.\nP1 - settingName: string\nP2 - settingValue: unknown', 2) end local realSetting = '_' .. settingName if self[realSetting] ~= ni...
173
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/stringToNumber.luau
luau
.luau
local function stringToNumber(self, str) if not (str and type(str) == 'string') then error('stringToNumber had invalid parameters.\nP1 - string: string', 2) end local totalMagnitude = 1 for key, suffix in pairs(self._suffixTable) do str = string.gsub(str, suffix, function() totalMagnitude = totalMagnitude ...
176
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/BaseMotor.lua
luau
.lua
local RunService = game:GetService("RunService") local Signal = require(script.Parent.Signal) local noop = function() end local BaseMotor = {} BaseMotor.__index = BaseMotor function BaseMotor.new() return setmetatable({ _onStep = Signal.new(), _onComplete = Signal.new() }, BaseMotor) end function BaseMotor:o...
223
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/GroupMotor.lua
luau
.lua
local BaseMotor = require(script.Parent.BaseMotor) local SingleMotor = require(script.Parent.SingleMotor) local isMotor = require(script.Parent.isMotor) local GroupMotor = setmetatable({}, BaseMotor) GroupMotor.__index = GroupMotor local function toMotor(value) if isMotor(value) then return value end local val...
530
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/Instant.lua
luau
.lua
local Instant = {} Instant.__index = Instant function Instant.new(targetValue) return setmetatable({ _targetValue = targetValue }, Instant) end function Instant:step() return { complete = true, value = self._targetValue } end return Instant
61
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/Signal.lua
luau
.lua
local Connection = {} Connection.__index = Connection function Connection.new(signal, handler) return setmetatable({ signal = signal, connected = true, _handler = handler }, Connection) end function Connection:disconnect() if self.connected then self.connected = false for index, connection in pairs(self...
240
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/SingleMotor.lua
luau
.lua
local BaseMotor = require(script.Parent.BaseMotor) local SingleMotor = setmetatable({}, BaseMotor) SingleMotor.__index = SingleMotor function SingleMotor.new(initialValue, shouldStartImplicitly) assert(initialValue, "Missing argument #1: initialValue") assert(typeof(initialValue) == "number", "initialValue must be ...
287
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/init.lua
luau
.lua
local Flipper = { SingleMotor = require(script.SingleMotor), GroupMotor = require(script.GroupMotor), Instant = require(script.Instant), Spring = require(script.Spring), isMotor = require(script.isMotor) } return Flipper
50
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/isMotor.lua
luau
.lua
local function isMotor(value) local motorType = tostring(value):match("^Motor%((.+)%)$") if motorType then return true, motorType else return false end end return isMotor
48
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Collection.lua
luau
.lua
local Promise = require(script.Parent.Parent.Promise) local t = require(script.Parent.Parent.t) local Document = require(script.Parent.Document) local stackSkipAssert = require(script.Parent.stackSkipAssert).stackSkipAssert local getTime = require(script.Parent.getTime).getTime local DOCUMENT_COOLDOWN = 7 local Colle...
571
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Document.lua
luau
.lua
local Promise = require(script.Parent.Parent.Promise) local AccessLayer = require(script.Parent.Layers.AccessLayer) local DocumentData = require(script.Parent.DocumentData) local Error = require(script.Parent.Error) local stackSkipAssert = require(script.Parent.stackSkipAssert).stackSkipAssert local Document = {} Docu...
546
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/DocumentData.lua
luau
.lua
local DocumentData = {} DocumentData.__index = DocumentData -- TODO: Backups function DocumentData.new(options) return setmetatable({ _lockSession = options.lockSession; _readOnlyData = options.readOnlyData; _collection = options.collection; _currentData = nil; _dataLoaded = false; _closed = false; }, D...
336
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Error.lua
luau
.lua
local makeEnum = require(script.Parent.makeEnum).makeEnum local getTime = require(script.Parent.getTime).getTime local Error = { Kind = makeEnum("Quicksave.Error.Kind", { "DataStoreError", "CouldNotAcquireLock", "LockConsistencyViolation", "SchemaValidationFailed" }), } Error.__index = Error function Error....
446
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/AccessLayer/LockSession.lua
luau
.lua
local MigrationLayer = require(script.Parent.Parent.MigrationLayer) local Error = require(script.Parent.Parent.Parent.Error) local Promise = require(script.Parent.Parent.Parent.Parent.Promise) local getTime = require(script.Parent.Parent.Parent.getTime).getTime local HttpService = game:GetService("HttpService") local...
1,093
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/AccessLayer/init.lua
luau
.lua
local LockSession = require(script.LockSession) local MigrationLayer = require(script.Parent.MigrationLayer) local AccessLayer = {} function AccessLayer.acquireLockSession(collection, key, migrations) local lockSession = LockSession.new(collection, key, migrations) return lockSession:lock() end function AccessLay...
86
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/LZW.lua
luau
.lua
local dictionary, length = {}, 0 for i = 32, 127 do if i ~= 34 and i ~= 92 then local c = string.char(i) dictionary[c], dictionary[length] = length, c length = length + 1 end end local escapemap = {} for i = 1, 34 do i = ({34, 92, 127})[i-31] or i local c, e = string.char(i), string.char(i + 31) escapemap[c...
818
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/Schemes/compressed.lua
luau
.lua
local LZW = require(script.Parent.Parent.LZW) return { ["compressed/1"] = { pack = function(value) return LZW.compress(value) end; unpack = function(value) return LZW.decompress(value); end; } }
59
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/Schemes/raw.lua
luau
.lua
return { ["raw/1"] = { pack = function(value) return value end; unpack = function(value) return value; end; } }
41
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/init.lua
luau
.lua
local RetryLayer = require(script.Parent.RetryLayer) local HttpService = game:GetService("HttpService") local RawSchemes = require(script.Schemes.raw) local CompressedSchemes = require(script.Schemes.compressed) local MINIMUM_LENGTH_TO_COMPRESS = 1000 local DataLayer = { schemes = { ["raw/1"] = RawSchemes["raw/1...
329
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataStoreLayer.lua
luau
.lua
local DataStoreService = require(script.Parent.Parent.Parent.MockDataStoreService) local DataStoreLayer = { _dataStores = {}; } function DataStoreLayer._getDataStore(collectionName) if DataStoreLayer._dataStores[collectionName] == nil then DataStoreLayer._dataStores[collectionName] = DataStoreService:...
146
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/MigrationLayer.lua
luau
.lua
local DataLayer = require(script.Parent.DataLayer) local MigrationLayer = {} function MigrationLayer._unpack(value, migrations) value = value or { generation = #migrations; data = nil; } local data = value.data local generation = value.generation if generation < #migrations then for i = generation + 1, #...
216
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/RetryLayer.lua
luau
.lua
local ThrottleLayer = require(script.Parent.ThrottleLayer) local Error = require(script.Parent.Parent.Error) local RetryLayer = {} function RetryLayer._retry(callback, ...) local attempts = 0 while attempts < 5 do attempts = attempts + 1 local ok, value = pcall(callback, ...) if ok then return value e...
216
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/ThrottleLayer.lua
luau
.lua
local DataStoreService = require(script.Parent.Parent.Parent.MockDataStoreService) local RunService = game:GetService("RunService") local DataStoreLayer = require(script.Parent.DataStoreLayer) local METHOD_RESOURCE_MAP = { GetAsync = Enum.DataStoreRequestType.GetAsync; UpdateAsync = Enum.DataStoreRequestType.Update...
431
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/getTime.lua
luau
.lua
return { getTime = os.clock; }
9
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/init.lua
luau
.lua
local t = require(script.Parent.t) local Promise = require(script.Parent.Promise) local Collection = require(script.Collection) local Error = require(script.Error) local Quicksave = { t = t; Promise = Promise; Error = Error; _collections = {}; } function Quicksave.createCollection(name, options) if Quicksave._c...
151
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/makeEnum.lua
luau
.lua
local function makeEnum(enumName, members) local enum = {} for _, memberName in ipairs(members) do enum[memberName] = memberName end return setmetatable(enum, { __index = function(_, k) error(string.format("%s is not in %s!", k, enumName), 2) end, __newindex = function() error(string.format("Creatin...
119
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/stackSkipAssert.lua
luau
.lua
local function stackSkipAssert(condition, text) if not condition then error(text, 3) end end return { stackSkipAssert = stackSkipAssert; }
36
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/t/init.lua
luau
.lua
-- t: a runtime typechecker for Roblox -- regular lua compatibility local typeof = typeof or type local function primitive(typeName) return function(value) local valueType = typeof(value) if valueType == typeName then return true else return false, string.format("%s expected, got %s", typeName, valueType...
6,453
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/components/Context.lua
luau
.lua
--!strict local React = require(script.Parent.Parent.Parent.react) --OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux) local Subscription = require(script.Parent.Parent.utils.Subscription) export type ReactReduxContextValue<SS = any, A = any> = { store: any, --OverHash deviation: use any in...
156
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/components/Provider.lua
luau
.lua
--!strict local React = require(script.Parent.Parent.Parent.react) local ReactReduxContext = require(script.Parent.Context) local Subscription = require(script.Parent.Parent.utils.Subscription) -- OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux) export type ProviderProps<A = any, S = unkno...
409
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useDispatch.lua
luau
.lua
--!strict local React = require(script.Parent.Parent.Parent.react) local ReactReduxContext = require(script.Parent.Parent.components.Context) local useDefaultStore = require(script.Parent.useStore).useStore local createStoreHook = require(script.Parent.useStore).createStoreHook local exports = {} --[[ * Hook factor...
360
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useReduxContext.lua
luau
.lua
--!strict local React = require(script.Parent.Parent.Parent.react) local ReactReduxContext = require(script.Parent.Parent.components.Context) local exports = {} --[[ * A hook to access the value of the `ReactReduxContext`. This is a low-level * hook that you should usually not need to call directly. * * @returns ...
221
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useSelector.lua
luau
.lua
--!strict local React = require(script.Parent.Parent.Parent.react) local useDefaultReduxContext = require(script.Parent.useReduxContext).useReduxContext local ReactReduxContext = require(script.Parent.Parent.components.Context) local types = require(script.Parent.Parent.types) local useSyncExternalStore = require(scri...
822
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useStore.lua
luau
.lua
--!strict local React = require(script.Parent.Parent.Parent.react) -- OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux) local Context = require(script.Parent.Parent.components.Context) local useDefaultReduxContext = require(script.Parent.useReduxContext).useReduxContext local exports = {} -...
352
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/types.lua
luau
.lua
--!strict local React = require(script.Parent.Parent.react) export type FixTypeLater = any export type EqualityFn<T> = (a: T, b: T) -> boolean export type ExtendedEqualityFn<T, P> = (a: T, b: T, c: P, d: P) -> boolean export type DispatchProp<A = any> = { dispatch: (any) -> (), } export type Matching<InjectedProps...
358
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/Subscription.lua
luau
.lua
--!strict -- OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux) local Batch = require(script.Parent.batch) -- encapsulates the subscription logic for connecting a component to the redux store, as -- well as nesting subscriptions of descendant components, so that we can ensure the -- ancestor...
883
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/batch.lua
luau
.lua
--!strict local exports = {} -- Default to a dummy "batch" implementation that just runs the callback local function defaultNoopBatch(callback: () -> ()) callback() end local batch = defaultNoopBatch -- Allow injecting another batching function later exports.setBatch = function(newBatch: typeof(defaultNoopBatch)) ...
103
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/reactBatchedUpdates.roblox.lua
luau
.lua
local ReactRoblox = require(script.Parent.Parent.Parent["react-roblox"]) return ReactRoblox.unstable_batchedUpdates
26
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/shallowEqual.lua
luau
.lua
--!strict -- OverHash deviation: use "LuauPolyfill" instead of "Collections" local Collections = require(script.Parent.Parent.Parent.ReactLua.node_modules[".luau-aliases"]["@jsdotlua"].collections) local Object = Collections.Object local function shallowEqual(objA: any, objB: any) if objA == objB then return true...
196
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/useSyncExternalStore.lua
luau
.lua
local _useSyncExternalStore = require(script.Parent.Parent.useSyncExternalStore.useSyncExternalStoreShimClient) local _useSyncExternalStoreWithSelector = require(script.Parent.Parent.useSyncExternalStore.useSyncExternalStoreWithSelector) local exports = {} exports.notInitialized = function() error("uSES not initial...
96
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/tableutil/init.lua
luau
.lua
-- Table Util -- Stephen Leitnick -- September 13, 2017 --[[ TableUtil.Copy(tbl: table): table TableUtil.CopyShallow(tbl: table): table TableUtil.Sync(tbl: table, template: table): void TableUtil.FastRemove(tbl: table, index: number): void TableUtil.FastRemoveFirstValue(tbl: table, value: any): (boolean, number)...
2,028
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/include/RuntimeLib.lua
luau
.lua
local Promise = require(script.Parent.Promise) local RunService = game:GetService("RunService") local OUTPUT_PREFIX = "roblox-ts: " local NODE_MODULES = "node_modules" local DEFAULT_SCOPE = "@rbxts" local TS = {} TS.Promise = Promise local function isPlugin(context) return RunService:IsStudio() and context:FindFi...
1,372
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Components/ScrollView/ScrollContentViewNativeComponent.luau
luau
.luau
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
386
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Components/ScrollView/ScrollViewNativeComponent.luau
luau
.luau
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
1,594
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Components/View/View.luau
luau
.luau
-- ROBLOX note: no upstream --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required...
506
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Lists/AnimatedFlatList.luau
luau
.luau
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
456
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Lists/Hooks/init.luau
luau
.luau
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
153
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Lists/Hooks/useFocusNavigationScrolling.luau
luau
.luau
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
904
OverHash/Roblox-TS-Libraries
OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/init.luau
luau
.luau
-- ROBLOX note: no upstream --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required...
342
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/ObjectiveInfo.luau
luau
.luau
--!strict local QuestObjective = require(script.Parent.QuestObjective) local assertProperties = require(script.Parent.Parent.Functions.assertProperties) export type QuestObjective = typeof(QuestObjective) --[=[ @class ObjectiveInfo @tag Class The ObjectiveInfo contains the static data for our quest objec...
818
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/Quest.luau
luau
.luau
--!strict local assertProperties = require(script.Parent.Parent.Functions.assertProperties) local QuestAcceptType = require(script.Parent.Parent.Enums.QuestAcceptType) local QuestDeliverType = require(script.Parent.Parent.Enums.QuestDeliverType) local QuestRepeatableType = require(script.Parent.Parent.Enums.QuestRepeat...
4,389
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/QuestLifeCycle.luau
luau
.luau
--!strict local QuestObjective = require(script.Parent.QuestObjective) local QuestStatus = require(script.Parent.Parent.Enums.QuestStatus) local Signal = require(script.Parent.Parent.Parent.Vendor.Signal) local QuestAcceptType = require(script.Parent.Parent.Enums.QuestAcceptType) local QuestDeliverType = require(script...
1,388
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/QuestObjective.luau
luau
.luau
--!strict local QuestObjectiveProgress = require(script.Parent.Parent.Structs.QuestObjectiveProgress) local assertProperties = require(script.Parent.Parent.Functions.assertProperties) local Signal = require(script.Parent.Parent.Parent.Vendor.Signal) local Trove = require(script.Parent.Parent.Parent.Vendor.Trove) type ...
1,896