function Provider view code
Provider(
provider: Self & { new: (...unknown) -> unknown, constructor: (unknown, ...unknown) -> unknown }
): Provider<Self>
Construct and returns a new provider from a Roblox TypeScript class declaration. Providers provide specific functionality in a game.
Intended for use as a class decorator for Roblox TypeScript projects. For Luau projects, consider using prvd instead.
Parameters
provider: Self & { new: (...unknown) -> unknown, constructor: (unknown, ...unknown) -> unknown }
The provider class as generated by Roblox TypeScript.
Returns
Provider
A newly constructed provider.