repo
stringclasses
302 values
file_path
stringlengths
18
241
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
76
697k
tokens
int64
10
271k
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/map.lua
luau
.lua
local __DEV__ = _G.__DEV__ local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> type Object = types.Object type callbackFn<T, U> = (element: T, index: number, array: Array<T>) -> U type callbackFnWithThisArg<T, U, V> = (thisArg: V, element: T, index: number, array:...
371
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/reduce.lua
luau
.lua
local __DEV__ = _G.__DEV__ local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> type reduceFn<T, U> = (previousValue: U, currentValue: T, currentIndex: number, array: Array<T>) -> U -- Implements Javascript's `Array.prototype.reduce` as defined below -- https://de...
321
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/reverse.lua
luau
.lua
-- https://programming-idioms.org/idiom/19/reverse-a-list/1314/lua local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> return function<T>(t: Array<T>): Array<T> local n = #t local i = 1 while i < n do t[i], t[n] = t[n], t[i] i = i + 1 n = n - 1 end ret...
116
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/shift.lua
luau
.lua
local __DEV__ = _G.__DEV__ local isArray = require(script.Parent:WaitForChild('isArray')) local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> return function<T>(value: Array<T>): T? if __DEV__ then if not isArray(value) then error(string.format("Array.shift...
123
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/slice.lua
luau
.lua
local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> -- Implements Javascript's `Array.prototype.slice` as defined below, but with 1-indexing -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice return function<T>(t: Arra...
304
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/some.lua
luau
.lua
local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> type Object = types.Object -- note: JS version can return anything that's truthy, but that won't work for us since Lua deviates (0 is truthy) type callbackFn<T> = (element: T, index: number, array: Array<T>) -> ...
331
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/sort.lua
luau
.lua
local None = require(script.Parent.Parent:WaitForChild('Object'):WaitForChild('None')) local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> type Comparable = (any, any) -> number local defaultSort = function<T>(a: T, b: T): boolean return type(a) .. tostring(a) < ...
298
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/splice.lua
luau
.lua
local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> -- Implements equivalent functionality to JavaScript's `array.splice`, including -- the interface and behaviors defined at: -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Arr...
443
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Array/unshift.lua
luau
.lua
local __DEV__ = _G.__DEV__ local isArray = require(script.Parent:WaitForChild('isArray')) local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> return function<T>(array: Array<T>, ...: T): number if __DEV__ then if not isArray(array) then error(string.format(...
161
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Map/Map.lua
luau
.lua
local __DEV__ = _G.__DEV__ local arrayForEach = require(script.Parent.Parent:WaitForChild('Array'):WaitForChild('forEach')) local arrayMap = require(script.Parent.Parent:WaitForChild('Array'):WaitForChild('map')) local isArray = require(script.Parent.Parent:WaitForChild('Array'):WaitForChild('isArray')) local instance...
1,464
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Map/coerceToMap.lua
luau
.lua
local Map = require(script.Parent:WaitForChild('Map')) local Object = require(script.Parent.Parent:WaitForChild('Object')) local instanceOf = require(script.Parent.Parent.Parent:WaitForChild('instance-of')) local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Map<K, V> = types.Map<K, V> ty...
165
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Map/coerceToTable.lua
luau
.lua
local Map = require(script.Parent:WaitForChild('Map')) local instanceOf = require(script.Parent.Parent.Parent:WaitForChild('instance-of')) local arrayReduce = require(script.Parent.Parent:WaitForChild('Array'):WaitForChild('reduce')) local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Map...
189
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Map/init.lua
luau
.lua
local ES7Types = require(script.Parent.Parent:WaitForChild('es7-types')) local Map = require(script:WaitForChild('Map')) local coerceToMap = require(script:WaitForChild('coerceToMap')) local coerceToTable = require(script:WaitForChild('coerceToTable')) export type Map<K, V> = ES7Types.Map<K, V> return { Map = Map, ...
107
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/None.lua
luau
.lua
--!nonstrict -- Marker used to specify that the value is nothing, because nil cannot be -- stored in tables. local None = newproxy(true) local mt = getmetatable(None) mt.__tostring = function() return "Object.None" end return None
57
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/assign.lua
luau
.lua
local None = require(script.Parent:WaitForChild('None')) local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Object = types.Object --[[ Merges values from zero or more tables onto a target table. If a value is set to None, it will instead be removed from the table. This function is id...
523
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/freeze.lua
luau
.lua
local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> type Object = types.Object return function<T>(t: T & (Object | Array<any>)): T -- Luau FIXME: model freeze better so it passes through the type constraint and doesn't erase return (table.freeze(t :: any) :: an...
86
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/init.lua
luau
.lua
return { assign = require(script:WaitForChild('assign')), entries = require(script:WaitForChild('entries')), freeze = require(script:WaitForChild('freeze')), is = require(script:WaitForChild('is')), isFrozen = require(script:WaitForChild('isFrozen')), keys = require(script:WaitForChild('keys')), preventExtension...
153
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/is.lua
luau
.lua
-- Implements Javascript's `Object.is` as defined below -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is return function(value1: any, value2: any): boolean if value1 == value2 then return value1 ~= 0 or 1 / value1 == 1 / value2 else return value1 ~= value1 and value2 ~...
95
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/isFrozen.lua
luau
.lua
local __DEV__ = _G.__DEV__ local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> type Object = types.Object return function(t: Object | Array<any>): boolean if __DEV__ then print("Luau now has a direct table.isfrozen call that can save the overhead of this libr...
95
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/keys.lua
luau
.lua
local Set = require(script.Parent.Parent:WaitForChild('Set')) local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) local instanceOf = require(script.Parent.Parent.Parent:WaitForChild('instance-of')) type Array<T> = types.Array<T> type Set<T> = types.Set<T> type Table = { [any]: any } return fun...
222
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/preventExtensions.lua
luau
.lua
local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> type Object = types.Object -- FIXME: This should be updated to be closer to the actual -- `Object.preventExtensions` functionality in JS. This requires additional -- support from the VM local function preventExt...
176
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Object/values.lua
luau
.lua
local types = require(script.Parent.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> -- TODO Luau: needs overloads to model this more correctly return function<T>(value: { [string]: T } | Array<T> | string): Array<T> | Array<string> if value == nil then error("cannot extract values from a nil...
229
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/Set/init.lua
luau
.lua
--!nonstrict local __DEV__ = _G.__DEV__ local inspect = require(script.Parent:WaitForChild('inspect')) local isArray = require(script.Parent:WaitForChild('Array'):WaitForChild('isArray')) local arrayForEach = require(script.Parent:WaitForChild('Array'):WaitForChild('forEach')) local arrayFromString = require(script.Pa...
1,105
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/WeakMap.lua
luau
.lua
local ES7Types = require(script.Parent.Parent:WaitForChild('es7-types')) type WeakMap<K, V> = ES7Types.WeakMap<K, V> type WeakMapPrivate<K, V> = { _weakMap: { [K]: V }, -- method definitions get: (self: WeakMapPrivate<K, V>, K) -> V, set: (self: WeakMapPrivate<K, V>, K, V) -> WeakMapPrivate<K, V>, has: (self: We...
294
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/collections/src/init.lua
luau
.lua
local Array = require(script:WaitForChild('Array')) local Map = require(script:WaitForChild('Map')) local Object = require(script:WaitForChild('Object')) local Set = require(script:WaitForChild('Set')) local WeakMap = require(script:WaitForChild('WeakMap')) local inspect = require(script:WaitForChild('inspect')) local...
203
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/es7-types.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_es7-types@1.2.7"]["es7-types"]) export type Object = REQUIRED_MODULE.Object export type Array<T> = REQUIRED_MODULE.Array<T> export type Function = REQUIRED_MODULE.Function export type Table<T, V> = REQUIRED_MODULE.Table<T, V> export type Tuple<T, V> = REQ...
212
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_collections@1.2.7/instance-of.lua
luau
.lua
return require(script.Parent.Parent["jsdotlua_instance-of@1.2.7"]["instance-of"])
21
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_console@1.2.7/collections.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_collections@1.2.7"]["collections"]) export type Array<T> = REQUIRED_MODULE.Array<T> export type Map<T, V> = REQUIRED_MODULE.Map<T, V> export type Object = REQUIRED_MODULE.Object export type Set<T> = REQUIRED_MODULE.Set<T> export type WeakMap<T, V> = REQUIR...
89
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_console@1.2.7/console/src/init.lua
luau
.lua
local makeConsoleImpl = require(script:WaitForChild('makeConsoleImpl')) return makeConsoleImpl()
21
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_console@1.2.7/console/src/makeConsoleImpl.lua
luau
.lua
local inspect = require(script.Parent.Parent:WaitForChild('collections')).inspect local INDENT = " " return function() local console = {} local indentDepth = 0 local function indent() return string.rep(INDENT, indentDepth) end function console.log(content, ...) local message if typeof(content) == "strin...
515
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_es7-types@1.2.7/es7-types/src/init.lua
luau
.lua
export type Object = { [string]: any } export type Array<T> = { [number]: T } export type Function = (...any) -> ...any export type Table<T, V> = { [T]: V } export type Tuple<T, V> = Array<T | V> export type mapCallbackFn<K, V> = (element: V, key: K, map: Map<K, V>) -> () export type mapCallbackFnWithThisArg<K, V> = (t...
826
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_instance-of@1.2.7/instance-of/src/init.lua
luau
.lua
local instanceof = require(script:WaitForChild('instanceof')) return instanceof
16
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_instance-of@1.2.7/instance-of/src/instanceof.lua
luau
.lua
-- polyfill for https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof local __DEV__ = _G.__DEV__ -- FIXME Luau: typing class as Object gives: Type '{ @metatable {| __call: <a>(a, ...any) -> Error, __tostring: <b, c>({+ message: b, name: c +}) -> string |}, Error }' could not be convert...
322
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/luau-polyfill/src/AssertionError/init.lua
luau
.lua
local AssertionErrorModule = require(script:WaitForChild('AssertionError.global')) export type AssertionError = AssertionErrorModule.AssertionError return AssertionErrorModule.AssertionError
32
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/luau-polyfill/src/Error/init.lua
luau
.lua
local Error = require(script:WaitForChild('Error.global')) export type Error = Error.Error return Error
23
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/luau-polyfill/src/Promise.lua
luau
.lua
-- this maps onto community promise libraries which won't support Luau, so we inline export type PromiseLike<T> = { andThen: ( self: PromiseLike<T>, resolve: ((T) -> ...(nil | T | PromiseLike<T>))?, reject: ((any) -> ...(nil | T | PromiseLike<T>))? ) -> PromiseLike<T> } type PromiseStatus = "Started" | "Resolv...
313
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/luau-polyfill/src/encodeURIComponent.lua
luau
.lua
-- reference documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent local HttpService = game:GetService("HttpService") local String = require(script.Parent.Parent:WaitForChild('string')) local charCodeAt = String.charCodeAt local Error = require(script.Parent...
351
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/luau-polyfill/src/extends.lua
luau
.lua
--!nonstrict --[[ deviation: Our constructors currently have no notion of 'super' so any such behavior in upstream JS must be implemented manually by setting fields A constructor passed to this class would typically look along the lines of: function(self, arg, otherArg) self.arg = arg self.otherArg = otherArg ...
289
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/luau-polyfill/src/init.lua
luau
.lua
local Boolean = require(script.Parent:WaitForChild('boolean')) local Collections = require(script.Parent:WaitForChild('collections')) local Console = require(script.Parent:WaitForChild('console')) local Math = require(script.Parent:WaitForChild('math')) local Number = require(script.Parent:WaitForChild('number')) local...
454
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/symbol-luau.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_symbol-luau@1.0.1"]["symbol-luau"]) export type Symbol = REQUIRED_MODULE.Symbol return REQUIRED_MODULE
40
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_luau-polyfill@1.2.7/timers.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_timers@1.2.7"]["timers"]) export type Timeout = REQUIRED_MODULE.Timeout export type Interval = REQUIRED_MODULE.Interval return REQUIRED_MODULE
44
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/MAX_SAFE_INTEGER.lua
luau
.lua
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER return 9007199254740991
34
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/MIN_SAFE_INTEGER.lua
luau
.lua
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER return -9007199254740991
33
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/init.lua
luau
.lua
return { isFinite = require(script:WaitForChild('isFinite')), isInteger = require(script:WaitForChild('isInteger')), isNaN = require(script:WaitForChild('isNaN')), isSafeInteger = require(script:WaitForChild('isSafeInteger')), MAX_SAFE_INTEGER = require(script:WaitForChild('MAX_SAFE_INTEGER')), MIN_SAFE_INTEGER =...
111
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/isFinite.lua
luau
.lua
return function(value) return typeof(value) == "number" and value == value and value ~= math.huge and value ~= -math.huge end
32
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/isInteger.lua
luau
.lua
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger return function(value) return type(value) == "number" and value ~= math.huge and value == math.floor(value) end
50
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/isNaN.lua
luau
.lua
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN return function(value) return type(value) == "number" and value ~= value end
42
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/isSafeInteger.lua
luau
.lua
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger local isInteger = require(script.Parent:WaitForChild('isInteger')) local MAX_SAFE_INTEGER = require(script.Parent:WaitForChild('MAX_SAFE_INTEGER')) return function(value) return isInteger(value) and math.abs(value...
77
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_number@1.2.7/number/src/toExponential.lua
luau
.lua
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential return function(value: string | number, fractionDigits: number?): string | nil local num = value if typeof(value) == "string" then -- ROBLOX FIXME: add parseInt to encapsulate this logic and use it here local ...
292
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-reconciler@17.2.1/luau-polyfill.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_luau-polyfill@1.2.7"]["luau-polyfill"]) export type Array<T> = REQUIRED_MODULE.Array<T> export type AssertionError = REQUIRED_MODULE.AssertionError export type Error = REQUIRED_MODULE.Error export type Map<T, V> = REQUIRED_MODULE.Map<T, V> export type Obj...
164
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-reconciler@17.2.1/react-reconciler/src/RobloxReactProfiling.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,292
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-reconciler@17.2.1/react.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_react@17.2.1"]["react"]) export type Object = REQUIRED_MODULE.Object export type Binding<T> = REQUIRED_MODULE.Binding<T> export type BindingUpdater<T> = REQUIRED_MODULE.BindingUpdater<T> export type LazyComponent<T, P> = REQUIRED_MODULE.LazyComponent<T, P>...
447
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-reconciler@17.2.1/scheduler.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_scheduler@17.2.1"]["scheduler"]) export type Interaction = REQUIRED_MODULE.Interaction return REQUIRED_MODULE
35
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-reconciler@17.2.1/shared.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_shared@17.2.1"]["shared"]) export type ReactEmpty = REQUIRED_MODULE.ReactEmpty export type ReactFragment = REQUIRED_MODULE.ReactFragment export type ReactNodeList = REQUIRED_MODULE.ReactNodeList export type ReactProviderType<T> = REQUIRED_MODULE.ReactPro...
707
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-roblox@17.2.1/react-reconciler.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent["jsdotlua_react-reconciler@17.2.1"]["react-reconciler"]) export type Dispatcher = REQUIRED_MODULE.Dispatcher export type Fiber = REQUIRED_MODULE.Fiber export type FiberRoot = REQUIRED_MODULE.FiberRoot export type UpdateQueue<T> = REQUIRED_MODULE.UpdateQueue<T> exp...
84
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-roblox@17.2.1/react-roblox/src/ReactReconciler.roblox.luau
luau
.luau
--!strict -- ROBLOX deviation: Initializes the reconciler with this package's host -- config and returns the resulting module local initializeReconciler = require(script.Parent.Parent:WaitForChild('react-reconciler')) local ReactRobloxHostConfig = require(script.Parent:WaitForChild('client'):WaitForChild('ReactRoblox...
88
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react-roblox@17.2.1/react-roblox/src/client/roblox/RobloxComponentProps.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...
2,582
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_react@17.2.1/react/src/ReactBinding.roblox.luau
luau
.luau
--!strict --[[ * 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...
1,515
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_scheduler@17.2.1/scheduler/src/unstable_mock.luau
luau
.luau
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *]] local Tracing = require(script.Parent:WaitForChild('Tracing')) local TracingSubscriptions = require(script.Parent:WaitF...
388
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/ErrorHandling.roblox.luau
luau
.luau
--!strict --[[ * 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...
838
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/PropMarkers/Change.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...
342
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/PropMarkers/Event.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...
332
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/PropMarkers/Tag.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...
183
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/ReactElementType.luau
luau
.luau
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local LuauPolyfill = require(script.Parent.Parent:WaitForChild('luau-polyfill')) type Object = LuauPolyfill....
360
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/ReactFiberHostConfig/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...
368
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/ReactTypes.luau
luau
.luau
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local LuauPolyfill = require(script.Parent.Parent:WaitForChild('luau-polyfill')) type Array<T> = LuauPolyfil...
2,199
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/Symbol.roblox.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...
281
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/Type.roblox.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...
312
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/UninitializedState.roblox.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...
331
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/console.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...
311
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/enqueueTask.roblox.luau
luau
.luau
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * ]] local LuauPolyfill = require(script.Parent.Parent:WaitForChild('luau-polyfill')) local setTimeout = LuauPolyfill....
108
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_shared@17.2.1/shared/src/init.luau
luau
.luau
--!strict --[[ * 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...
1,668
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/charCodeAt.lua
luau
.lua
local Number = require(script.Parent.Parent:WaitForChild('number')) local NaN = Number.NaN -- js https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt -- lua http://www.lua.org/manual/5.4/manual.html#pdf-utf8.codepoint return function(str: string, index: number): number ...
257
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/endsWith.lua
luau
.lua
local function endsWith(value: string, substring: string, optionalLength: number?): boolean local substringLength = substring:len() if substringLength == 0 then return true end local valueLength = value:len() local length = optionalLength or valueLength if length > valueLength then length = valueLength end ...
115
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/findOr.lua
luau
.lua
type Match = { index: number, match: string } -- excluding the `+` and `*` character, since findOr tests and graphql use them explicitly local luaPatternCharacters = "([" .. ("$%^()-[].?"):gsub("(.)", "%%%1") .. "])" local function findOr(str: string, patternTable: { string }, initIndex: number?): Match | nil -- l...
419
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/includes.lua
luau
.lua
-- excluding the `+` and `*` character, since findOr tests and graphql use them explicitly local luaPatternCharacters = "([" .. ("$%^()-[].?"):gsub("(.)", "%%%1") .. "])" local function includes(str: string, substring: string, position: (string | number)?): boolean local strLen, invalidBytePosition = utf8.len(str) a...
245
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/indexOf.lua
luau
.lua
-- excluding the `+` and `*` character, since findOr tests and graphql use them explicitly local luaPatternCharacters = "([" .. ("$%^()-[].?"):gsub("(.)", "%%%1") .. "])" -- Implements equivalent functionality to JavaScript's `String.indexOf`, -- implementing the interface and behaviors defined at: -- https://develope...
254
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/init.lua
luau
.lua
return { charCodeAt = require(script:WaitForChild('charCodeAt')), endsWith = require(script:WaitForChild('endsWith')), findOr = require(script:WaitForChild('findOr')), includes = require(script:WaitForChild('includes')), indexOf = require(script:WaitForChild('indexOf')), lastIndexOf = require(script:WaitForChild(...
204
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/lastIndexOf.lua
luau
.lua
local function lastIndexOf(str: string, searchValue: string, fromIndex: number?): number local strLength = string.len(str) local calculatedFromIndex if fromIndex then calculatedFromIndex = fromIndex else calculatedFromIndex = strLength end if fromIndex and fromIndex < 1 then calculatedFromIndex = 1 end if...
313
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/slice.lua
luau
.lua
local function slice(str: string, startIndexStr: string | number, lastIndexStr: (string | number)?): string local strLen, invalidBytePosition = utf8.len(str) assert(strLen ~= nil, ("string `%s` has an invalid byte at position %s"):format(str, tostring(invalidBytePosition))) local startIndex = tonumber(startIndexStr)...
321
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/split.lua
luau
.lua
local findOr = require(script.Parent:WaitForChild('findOr')) local slice = require(script.Parent:WaitForChild('slice')) local types = require(script.Parent.Parent:WaitForChild('es7-types')) type Array<T> = types.Array<T> local MAX_SAFE_INTEGER = require(script.Parent.Parent:WaitForChild('number')).MAX_SAFE_INTEGER ty...
534
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/startsWith.lua
luau
.lua
local function startsWith(value: string, substring: string, position: number?): boolean if string.len(substring) == 0 then return true end -- Luau FIXME: we have to use a tmp variable, as Luau doesn't understand the logic below narrow position to `number` local position_ if position == nil or position < 1 then ...
131
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/substr.lua
luau
.lua
return function(s: string, startIndex: number, numberOfCharacters: number?): string if numberOfCharacters and numberOfCharacters <= 0 then return "" end return string.sub(s, startIndex, numberOfCharacters and startIndex + numberOfCharacters - 1 or nil) end
55
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/trim.lua
luau
.lua
local trimStart = require(script.Parent:WaitForChild('trimStart')) local trimEnd = require(script.Parent:WaitForChild('trimEnd')) return function(source: string): string return trimStart(trimEnd(source)) end
47
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/trimEnd.lua
luau
.lua
return function(source: string): string return (source:gsub("[%s]+$", "")) end
20
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_string@1.2.7/string/src/trimStart.lua
luau
.lua
return function(source: string): string return (source:gsub("^[%s]+", "")) end
21
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_symbol-luau@1.0.1/symbol-luau/src/Registry.global.lua
luau
.lua
local Symbol = require(script.Parent:WaitForChild('Symbol')) local GlobalRegistry: { [string]: Symbol.Symbol } = {} return { getOrInit = function(name: string): Symbol.Symbol if GlobalRegistry[name] == nil then GlobalRegistry[name] = Symbol.new(name) end return GlobalRegistry[name] end, -- Used for testi...
91
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_symbol-luau@1.0.1/symbol-luau/src/Symbol.lua
luau
.lua
--!strict --[[ Symbols have the type 'userdata', but when printed or coerced to a string, the symbol will turn into the string given as its name. **This implementation provides only the `Symbol()` constructor and the global registry via `Symbol.for_`.** Other behaviors, including the ability to find all symbol p...
180
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_symbol-luau@1.0.1/symbol-luau/src/init.lua
luau
.lua
--!strict --[[ A 'Symbol' is an opaque marker type, implemented to behave similarly to JS: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol ]] local Symbol = require(script:WaitForChild('Symbol')) export type Symbol = Symbol.Symbol local GlobalRegistry = require(script:WaitForCh...
161
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_timers@1.2.7/timers/src/init.lua
luau
.lua
local Object = require(script.Parent:WaitForChild('collections')).Object local makeTimerImpl = require(script:WaitForChild('makeTimerImpl')) local makeIntervalImpl = require(script:WaitForChild('makeIntervalImpl')) export type Timeout = makeTimerImpl.Timeout export type Interval = makeIntervalImpl.Interval return Ob...
81
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_timers@1.2.7/timers/src/makeIntervalImpl.lua
luau
.lua
local Status = newproxy(false) type TaskStatus = number export type Interval = { [typeof(Status)]: TaskStatus } local SCHEDULED = 1 local CANCELLED = 3 return function(delayImpl) local function setInterval(callback, intervalTime: number, ...): Interval local args = { ... } local task = { [Status] = SCHEDULED...
271
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/jsdotlua_timers@1.2.7/timers/src/makeTimerImpl.lua
luau
.lua
local Status = newproxy(false) type TaskStatus = number export type Timeout = { [typeof(Status)]: TaskStatus } local SCHEDULED = 1 local DONE = 2 local CANCELLED = 3 return function(delayImpl) local function setTimeout(callback, delayTime: number?, ...): Timeout local args = { ... } local task = { [Status] =...
265
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/config.luau
luau
.luau
local config = { spring = { default = { tension = 170, friction = 26 }, gentle = { tension = 120, friction = 14 }, wobbly = { tension = 180, friction = 12 }, stiff = { tension = 210, friction = 20 }, slow = { tension = 280, friction = 60 }, molasses = { tension = 280, friction = 120 }, }, linear = { d...
180
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/createMotion.luau
luau
.luau
local RunService = game:GetService("RunService") local types = require(script.Parent.types) local immediateSolver = require(script.Parent.solvers.immediate) local linearSolver = require(script.Parent.solvers.linear) local springSolver = require(script.Parent.solvers.spring) local tweenSolver = require(script.Parent.so...
1,609
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/init.luau
luau
.luau
local types = require(script.types) export type Motion<T = number> = types.Motion<T> export type MotionState = types.MotionState export type MotionSolver = types.MotionSolver export type MotionGoal = types.MotionGoal export type SpringOptions = types.SpringOptions export type LinearOptions = types.LinearOptions ex...
132
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/solvers/immediate.luau
luau
.luau
local types = require(script.Parent.Parent.types) local intermediate = require(script.Parent.Parent.utils.intermediate) local function immediate(motionGoal: types.MotionGoal): types.MotionSolver local goals = intermediate.to(motionGoal) return function(key, state) local goal = intermediate.index(goals, key) if...
95
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/solvers/linear.luau
luau
.luau
local types = require(script.Parent.Parent.types) local config = require(script.Parent.Parent.config) local intermediate = require(script.Parent.Parent.utils.intermediate) local function configure(options: types.LinearOptions) local speed = if type(options) == "table" then options.speed else options return { spee...
218
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/solvers/spring.luau
luau
.luau
local types = require(script.Parent.Parent.types) local config = require(script.Parent.Parent.config) local intermediate = require(script.Parent.Parent.utils.intermediate) local STEP = 1 -- milliseconds local MAX_PASS = 100 local function configure(options: types.SpringOptions) local mass = options.mass or 1 local ...
554
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/solvers/tween.luau
luau
.luau
local TweenService = game:GetService("TweenService") local types = require(script.Parent.Parent.types) local config = require(script.Parent.Parent.config) local intermediate = require(script.Parent.Parent.utils.intermediate) local merge = require(script.Parent.Parent.utils.merge) type TweenEntry = { value: NumberVal...
429
MaximumADHD/Roblox-Boilerplate
MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/_Index/littensy_ripple@0.9.3/ripple/src/types.luau
luau
.luau
type Cleanup = () -> () export type Heartbeat = { Connect: (self: Heartbeat, callback: (deltaTime: number) -> ()) -> Disconnectable, } export type Disconnectable = { Disconnect: (self: Disconnectable) -> (), } export type Partial<T> = { [any]: any } & T export type SpringOptions = { damping: number?, frequency:...
618