diff --git a/src/index.ts b/src/index.ts index 231f42e..403e0de 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,8 +4,4 @@ export * from './effectScope.js'; export * from './signal.js'; export * from './system.js'; export * from './types.js'; -export * as unstable from './unstable/index.js'; -/** - * @deprecated Use `unstable` instead. - */ -export * as Unstable from './unstable/index.js'; +export * from './unstable/index.js'; diff --git a/src/unstable/index.ts b/src/unstable/index.ts index 3ac093d..039822d 100644 --- a/src/unstable/index.ts +++ b/src/unstable/index.ts @@ -1,6 +1,29 @@ -export * from './asyncComputed.js'; -export * from './asyncEffect.js'; -export * from './asyncSystem.js'; -export * from './computedArray.js'; -export * from './computedSet.js'; -export * from './equalityComputed.js'; + +import { AsyncComputed, asyncComputed } from './asyncComputed.js'; +import { AsyncEffect, asyncEffect } from './asyncEffect.js'; +import { asyncCheckDirty } from './asyncSystem.js'; +import { computedArray } from './computedArray.js'; +import { computedSet } from './computedSet.js'; +import { EqualityComputed, equalityComputed } from './equalityComputed.js'; + +export const unstable: { + AsyncComputed: typeof AsyncComputed; + asyncComputed: typeof asyncComputed; + AsyncEffect: typeof AsyncEffect; + asyncEffect: typeof asyncEffect; + asyncCheckDirty: typeof asyncCheckDirty; + computedArray: typeof computedArray; + computedSet: typeof computedSet; + EqualityComputed: typeof EqualityComputed; + equalityComputed: typeof equalityComputed; +} = { + AsyncComputed, + asyncComputed, + AsyncEffect, + asyncEffect, + asyncCheckDirty, + computedArray, + computedSet, + EqualityComputed, + equalityComputed, +};