search/
Start typing to search packages!
package_2
dlib
By @dig1t
Roblox
MirroreddLib
Modules and Libraries for development in Roblox.
Installing
Installing with wally
Add the below line to your wally.toml file
dlib = "dig1t/dlib@1.2.18"
Installing with Roblox Studio
Download the rbxl file from the releases tab.
Once the place file is open, you can find the package inside ReplicatedStorage.Packages.
Usage
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- Require dLib from your installation location
-- For this example we'll use ReplicatedStorage as dLib's parent location
-- and we'll import dLib's built in Palette module
local dLib = require(ReplicatedStorage.dlib)
local Palette = dLib.Palette
print(Palette.get("blue", 500))
Using built-in module types
dLib has a few built-in types that you can use to type your variables.
Promises
Method 1:
local Promise = dLib.Promise
local myPromise: typeof(Promise.PromiseType) = Promise.new(function(resolve, reject)
resolve("Hello World!")
end)
Method 2:
local Promise = dLib.Promise
type PromiseType = typeof(Promise.PromiseType)
local myPromise: PromiseType = Promise.new(function(resolve, reject)
resolve("Hello World!")
end)
Maids
Method 1:
local Maid = dLib.Maid
local myMaid: typeof(Maid.MaidType) = Maid.new()
Method 2:
local Maid = dLib.Maid
type MaidType = typeof(Maid.MaidType)
local myMaid: MaidType = Maid.new()
Cache
Method 1:
local Cache = dLib.Cache
local myCache: typeof(Cache.CacheType) = Cache.new()
Method 2:
local Cache = dLib.Cache
type CacheType = typeof(Cache.CacheType)
local myCache: CacheType = Cache.new()
Click here to learn how to import your first dLib module.
Package Details
Install command (Click to copy)
Version
1.2.18
License
Apache-2.0
Safe for commercial use
Modified files must carry a notice of changes. If the package ships a NOTICE file, its attributions must be preserved.
Automated license review — not legal advice.
