revert: build: remove project json files (#46)

This commit is contained in:
littensy 2025-03-09 18:03:54 -07:00
parent 990d71cd5b
commit d7a1f62c3c
49 changed files with 97 additions and 92 deletions

9
packages/vide/src/index.d.ts vendored Normal file
View 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;

View file

@ -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.