mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
12 lines
374 B
Text
12 lines
374 B
Text
type CoreReactBinding<T> = {
|
|
getValue: (self: CoreReactBinding<T>) -> T,
|
|
_source: string?,
|
|
}
|
|
|
|
type ReactBindingMap = {
|
|
map: <T, U>(self: CoreReactBinding<T> & ReactBindingMap, (T) -> U) -> ReactBindingMap & CoreReactBinding<U>,
|
|
}
|
|
|
|
export type Binding<T> = CoreReactBinding<T> & ReactBindingMap
|
|
|
|
return require(script.Parent.Parent.Parent:WaitForChild("@rbxts-js").React)
|