Skip to content

Commit

Permalink
feat: export RefObject (#425)
Browse files Browse the repository at this point in the history
Without export there is no way to use it? 😿

---------
  • Loading branch information
RoFlection Bot committed Feb 13, 2025
1 parent 6254ca9 commit 05c3de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/react/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type ElementType = SharedModule.React_ElementType
export type Element<C> = SharedModule.React_Element<C>
export type Key = SharedModule.React_Key
export type Ref<ElementType> = SharedModule.React_Ref<ElementType>
export type RefObject<T = any> = SharedModule.RefObject<T>
export type Node = SharedModule.React_Node
export type Context<T> = SharedModule.ReactContext<T>
-- ROBLOX TODO: Portal
Expand Down
2 changes: 1 addition & 1 deletion modules/shared/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type ReactConsumer<T> = ReactTypes.ReactConsumer<T>
export type ReactProvider<T> = ReactTypes.ReactProvider<T>
export type ReactContext<T> = ReactTypes.ReactContext<T>
export type ReactPortal = ReactTypes.ReactPortal
export type RefObject = ReactTypes.RefObject
export type RefObject<T = any> = ReactTypes.RefObject<T>
export type EventPriority = ReactTypes.EventPriority
export type ReactFundamentalComponentInstance<C, H> =
ReactTypes.ReactFundamentalComponentInstance<C, H>
Expand Down

0 comments on commit 05c3de4

Please sign in to comment.