feat: export vide.create types

Instances and Properties are both useful types that should be able to be used by consumers (e.g. wrapper components).
This commit is contained in:
Raine 2026-07-14 12:39:02 -04:00
parent 91920ff9b9
commit 235fe358f4
No known key found for this signature in database
GPG key ID: CB527EAC2C6F130C
3 changed files with 6 additions and 2 deletions

View file

@ -52,7 +52,7 @@ local function create(class_or_instance: string|Instance, properties: { [unknown
else constructor
end
type Instances = {
export type Instances = {
Folder: Folder,
BillboardGui: BillboardGui,
CanvasGroup: CanvasGroup,
@ -86,7 +86,7 @@ type Instances = {
WorldModel: WorldModel,
}
type function Properties(instance: type?)
export type function Properties(instance: type?)
local properties = types.newtable()
while instance do

View file

@ -6,5 +6,7 @@ export type source<T> = vide.source<T>
export type Source<T> = vide.Source<T>
export type context<T> = vide.context<T>
export type Context<T> = vide.Context<T>
export type Instances = vide.Instances
export type Properties<T> = vide.Properties<T>
return vide

View file

@ -27,6 +27,8 @@ export type Source<T> = source.Source<T>
export type source<T> = Source<T>
export type Context<T> = context.Context<T>
export type context<T> = Context<T>
export type Instances = create.Instances
export type Properties<T> = create.Properties<T>
local function step(dt: number)
if game then debug.profilebegin("VIDE STEP") end