From e79c696e52239c20ede8472b73c4c37ec45c0cb5 Mon Sep 17 00:00:00 2001 From: Abhishiv Saxena Date: Wed, 16 Oct 2024 11:26:24 +0530 Subject: [PATCH] rm stale files --- src/addons/animation/index.ts | 9 --------- src/index.ts | 38 +++++++++++++---------------------- 2 files changed, 14 insertions(+), 33 deletions(-) delete mode 100644 src/addons/animation/index.ts diff --git a/src/addons/animation/index.ts b/src/addons/animation/index.ts deleted file mode 100644 index 2c39b21..0000000 --- a/src/addons/animation/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ComponentUtils } from "../../dom"; - -export const createAnimation = ( - utils: ComponentUtils, - initialValue: any -) => { - const $signal = utils.signal("animation", initialValue); - return [$signal]; -}; diff --git a/src/index.ts b/src/index.ts index 72443fe..63eff33 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,34 +1,24 @@ +export type * from "./core/state"; export { - component, - h, - render, - unrender, - Fragment, - ParentWireContext, - defineContext, -} from "./dom"; -export type * from "./dom"; -export { + createComputedSignal, createSignal, - createWire, createStore, - createComputedSignal, + createWire, + getProxyMeta, produce, reify, - getProxyMeta, } from "./core/state"; -export type * from "./core/state"; +export type * from "./dom"; +export { + component, + defineContext, + Fragment, + h, + ParentWireContext, + render, + unrender, +} from "./dom"; export * from "./stdlib/index"; export { getValueUsingPath } from "./utils/index"; -import { Signal } from "./core"; -import { ComponentUtils } from "./dom"; - export { getCursor } from "./utils/index"; - -export type UsePromiseResp = { - $data: Signal; - $error: Signal; - $loading: Signal; - $status: Signal<"loading" | "loaded" | "failed">; -};