Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default type of Scope exported by Fusion #373

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ local task = nil -- Disable usage of Roblox's task scheduler
local Types = require(script.Types)
local External = require(script.External)

type Fusion = Types.Fusion

export type Animatable = Types.Animatable
export type UsedAs<T> = Types.UsedAs<T>
export type Child = Types.Child
Expand All @@ -18,7 +20,7 @@ export type GraphObject = Types.GraphObject
export type For<KO, VO> = Types.For<KO, VO>
export type Observer = Types.Observer
export type PropertyTable = Types.PropertyTable
export type Scope<Constructors> = Types.Scope<Constructors>
export type Scope<Constructors = Fusion> = Types.Scope<Constructors>
export type ScopedObject = Types.ScopedObject
export type SpecialKey = Types.SpecialKey
export type Spring<T> = Types.Spring<T>
Expand All @@ -36,7 +38,7 @@ do
External.setExternalProvider(RobloxExternal)
end

local Fusion: Types.Fusion = table.freeze {
local Fusion: Fusion = table.freeze {
-- General
version = {major = 0, minor = 3, isRelease = false},
Contextual = require(script.Utility.Contextual),
Expand Down