Roblox TS compatibility for working with a Lundstrong Product's API.
Install through npm or yarn.
yarn add @rbxts/lundstrong
npm install @rbxts/lundstrong
An example is below.
import { ordersAPI } from '@rbxts/lundstrong'
import { ReplicatedStorage } from '@rbxts/services'
let API = require(ReplicatedStorage.LundstrongOrders.API) as ordersAPI
API.onOrderClaimed.Connect((order) => {
print(order.id)
})
API.SendNotification(plr, "hello this is sasial here!", 10)
The module will also add the ModuleScripts for ReplicatedStorage.LundstrongOrders.API
, Workspace.LundstrongOrders.Configuration
and Workspace.LundstrongOrders.MenuItemsConfig
- adding them to the autocomplete, and making them not an unknown type.
Versions will not match the version of the repos this module supports. In the package.json, it is suggested to set the version to "*"
, because that will match the latest version of the product(s).
The only 'gotcha' there is with this library, is that you DO NOT give order a type. The compiler will automatically give it the order type because of how the definitions were wrote.
- API.onOrderClaimed.Connect((order: Order) => {
+ API.onOrderClaimed.Connect((order) => {
We love contributions! Pull requests are warmly welcomed and highly appriciated. For major changes, please open an issue first or discuss on the discord to let us know what you would like to change.
Join the Lundstrong Discord.