mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 19:54:09 +00:00
revert: build: remove project json files (#46)
This commit is contained in:
parent
990d71cd5b
commit
d7a1f62c3c
49 changed files with 97 additions and 92 deletions
9
packages/vide/src/index.d.ts
vendored
Normal file
9
packages/vide/src/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Selector } from "@rbxts/charm";
|
||||
|
||||
/**
|
||||
* Subscribes to the state of an atom and returns a Vide source.
|
||||
*
|
||||
* @param callback The atom or selector to subscribe to.
|
||||
* @returns The reactive source.
|
||||
*/
|
||||
export function useAtom<T>(callback: Selector<T>): () => T;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
local Charm = require(script.Parent.Parent.charm)
|
||||
local Vide = if script.Parent.Parent:FindFirstChild("Vide")
|
||||
then require(script.Parent.Parent.Vide)
|
||||
else require((script.Parent.Parent :: any).vide.src) :: never
|
||||
local Charm = require(script.Parent.Charm)
|
||||
local Vide = if script.Parent:FindFirstChild("vide")
|
||||
then require(script.Parent.vide.src) :: never
|
||||
else require(script.Parent.Vide)
|
||||
|
||||
--[=[
|
||||
Subscribes to the state of an atom and returns a Vide source.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue