From 06808f99e99e615aaa89b64278786d373ed9cead Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 1 Dec 2022 14:24:09 +0100 Subject: [PATCH] Unify Derivation and Prism 3/n --- packages/dataverse/src/Atom.ts | 4 ++-- packages/dataverse/src/Box.ts | 2 +- .../src/derivations/{IDerivation.ts => Interface.ts} | 0 packages/dataverse/src/derivations/iterateAndCountTicks.ts | 4 ++-- packages/dataverse/src/derivations/iterateOver.ts | 4 ++-- .../dataverse/src/derivations/prism/discoveryMechanism.ts | 2 +- packages/dataverse/src/derivations/prism/prism.ts | 4 ++-- packages/dataverse/src/index.ts | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) rename packages/dataverse/src/derivations/{IDerivation.ts => Interface.ts} (100%) diff --git a/packages/dataverse/src/Atom.ts b/packages/dataverse/src/Atom.ts index f6ee460..c796ff4 100644 --- a/packages/dataverse/src/Atom.ts +++ b/packages/dataverse/src/Atom.ts @@ -1,8 +1,8 @@ import get from 'lodash-es/get' import isPlainObject from 'lodash-es/isPlainObject' import last from 'lodash-es/last' -import type {Prism} from './derivations/IDerivation' -import {isPrism} from './derivations/IDerivation' +import type {Prism} from './derivations/Interface' +import {isPrism} from './derivations/Interface' import type {Pointer, PointerType} from './pointer' import {isPointer} from './pointer' import pointer, {getPointerMeta} from './pointer' diff --git a/packages/dataverse/src/Box.ts b/packages/dataverse/src/Box.ts index 7cacf25..2cd739a 100644 --- a/packages/dataverse/src/Box.ts +++ b/packages/dataverse/src/Box.ts @@ -1,4 +1,4 @@ -import type {Prism} from './derivations/IDerivation' +import type {Prism} from './derivations/Interface' import prism from './derivations/prism/prism' import Emitter from './utils/Emitter' diff --git a/packages/dataverse/src/derivations/IDerivation.ts b/packages/dataverse/src/derivations/Interface.ts similarity index 100% rename from packages/dataverse/src/derivations/IDerivation.ts rename to packages/dataverse/src/derivations/Interface.ts diff --git a/packages/dataverse/src/derivations/iterateAndCountTicks.ts b/packages/dataverse/src/derivations/iterateAndCountTicks.ts index c19aeb5..10ee83d 100644 --- a/packages/dataverse/src/derivations/iterateAndCountTicks.ts +++ b/packages/dataverse/src/derivations/iterateAndCountTicks.ts @@ -1,8 +1,8 @@ import {valueDerivation} from '../Atom' import type {Pointer} from '../pointer' import {isPointer} from '../pointer' -import type {Prism} from './IDerivation' -import {isPrism} from './IDerivation' +import type {Prism} from './Interface' +import {isPrism} from './Interface' export default function* iterateAndCountTicks( pointerOrDerivation: Prism | Pointer, diff --git a/packages/dataverse/src/derivations/iterateOver.ts b/packages/dataverse/src/derivations/iterateOver.ts index b629a81..37db47d 100644 --- a/packages/dataverse/src/derivations/iterateOver.ts +++ b/packages/dataverse/src/derivations/iterateOver.ts @@ -2,8 +2,8 @@ import {valueDerivation} from '../Atom' import type {Pointer} from '../pointer' import {isPointer} from '../pointer' import Ticker from '../Ticker' -import type {Prism} from './IDerivation' -import {isPrism} from './IDerivation' +import type {Prism} from './Interface' +import {isPrism} from './Interface' export default function* iterateOver( pointerOrDerivation: Prism | Pointer, diff --git a/packages/dataverse/src/derivations/prism/discoveryMechanism.ts b/packages/dataverse/src/derivations/prism/discoveryMechanism.ts index 2b56320..99e027e 100644 --- a/packages/dataverse/src/derivations/prism/discoveryMechanism.ts +++ b/packages/dataverse/src/derivations/prism/discoveryMechanism.ts @@ -1,6 +1,6 @@ import type {$IntentionalAny} from '../../types' import Stack from '../../utils/Stack' -import type {Prism} from '../IDerivation' +import type {Prism} from '../Interface' function createMechanism() { const noop = () => {} diff --git a/packages/dataverse/src/derivations/prism/prism.ts b/packages/dataverse/src/derivations/prism/prism.ts index 59e5d86..e074e41 100644 --- a/packages/dataverse/src/derivations/prism/prism.ts +++ b/packages/dataverse/src/derivations/prism/prism.ts @@ -1,8 +1,8 @@ import type Ticker from '../../Ticker' import type {$IntentionalAny, VoidFn} from '../../types' import Stack from '../../utils/Stack' -import type {Prism} from '../IDerivation' -import {isPrism} from '../IDerivation' +import type {Prism} from '../Interface' +import {isPrism} from '../Interface' import { startIgnoringDependencies, stopIgnoringDependencies, diff --git a/packages/dataverse/src/index.ts b/packages/dataverse/src/index.ts index 86eb546..a31b8c1 100644 --- a/packages/dataverse/src/index.ts +++ b/packages/dataverse/src/index.ts @@ -8,8 +8,8 @@ export type {IdentityDerivationProvider} from './Atom' export {default as Atom, val, valueDerivation} from './Atom' export {default as Box} from './Box' export type {IBox} from './Box' -export {isPrism} from './derivations/IDerivation' -export type {Prism} from './derivations/IDerivation' +export {isPrism} from './derivations/Interface' +export type {Prism} from './derivations/Interface' export {default as iterateAndCountTicks} from './derivations/iterateAndCountTicks' export {default as iterateOver} from './derivations/iterateOver' export {default as prism} from './derivations/prism/prism'