Unify Derivation and Prism 3/n

This commit is contained in:
Aria Minaei 2022-12-01 14:24:09 +01:00
parent bfba1d4879
commit 06808f99e9
8 changed files with 12 additions and 12 deletions

View file

@ -1,8 +1,8 @@
import get from 'lodash-es/get' import get from 'lodash-es/get'
import isPlainObject from 'lodash-es/isPlainObject' import isPlainObject from 'lodash-es/isPlainObject'
import last from 'lodash-es/last' import last from 'lodash-es/last'
import type {Prism} from './derivations/IDerivation' import type {Prism} from './derivations/Interface'
import {isPrism} from './derivations/IDerivation' import {isPrism} from './derivations/Interface'
import type {Pointer, PointerType} from './pointer' import type {Pointer, PointerType} from './pointer'
import {isPointer} from './pointer' import {isPointer} from './pointer'
import pointer, {getPointerMeta} from './pointer' import pointer, {getPointerMeta} from './pointer'

View file

@ -1,4 +1,4 @@
import type {Prism} from './derivations/IDerivation' import type {Prism} from './derivations/Interface'
import prism from './derivations/prism/prism' import prism from './derivations/prism/prism'
import Emitter from './utils/Emitter' import Emitter from './utils/Emitter'

View file

@ -1,8 +1,8 @@
import {valueDerivation} from '../Atom' import {valueDerivation} from '../Atom'
import type {Pointer} from '../pointer' import type {Pointer} from '../pointer'
import {isPointer} from '../pointer' import {isPointer} from '../pointer'
import type {Prism} from './IDerivation' import type {Prism} from './Interface'
import {isPrism} from './IDerivation' import {isPrism} from './Interface'
export default function* iterateAndCountTicks<V>( export default function* iterateAndCountTicks<V>(
pointerOrDerivation: Prism<V> | Pointer<V>, pointerOrDerivation: Prism<V> | Pointer<V>,

View file

@ -2,8 +2,8 @@ import {valueDerivation} from '../Atom'
import type {Pointer} from '../pointer' import type {Pointer} from '../pointer'
import {isPointer} from '../pointer' import {isPointer} from '../pointer'
import Ticker from '../Ticker' import Ticker from '../Ticker'
import type {Prism} from './IDerivation' import type {Prism} from './Interface'
import {isPrism} from './IDerivation' import {isPrism} from './Interface'
export default function* iterateOver<V>( export default function* iterateOver<V>(
pointerOrDerivation: Prism<V> | Pointer<V>, pointerOrDerivation: Prism<V> | Pointer<V>,

View file

@ -1,6 +1,6 @@
import type {$IntentionalAny} from '../../types' import type {$IntentionalAny} from '../../types'
import Stack from '../../utils/Stack' import Stack from '../../utils/Stack'
import type {Prism} from '../IDerivation' import type {Prism} from '../Interface'
function createMechanism() { function createMechanism() {
const noop = () => {} const noop = () => {}

View file

@ -1,8 +1,8 @@
import type Ticker from '../../Ticker' import type Ticker from '../../Ticker'
import type {$IntentionalAny, VoidFn} from '../../types' import type {$IntentionalAny, VoidFn} from '../../types'
import Stack from '../../utils/Stack' import Stack from '../../utils/Stack'
import type {Prism} from '../IDerivation' import type {Prism} from '../Interface'
import {isPrism} from '../IDerivation' import {isPrism} from '../Interface'
import { import {
startIgnoringDependencies, startIgnoringDependencies,
stopIgnoringDependencies, stopIgnoringDependencies,

View file

@ -8,8 +8,8 @@ export type {IdentityDerivationProvider} from './Atom'
export {default as Atom, val, valueDerivation} from './Atom' export {default as Atom, val, valueDerivation} from './Atom'
export {default as Box} from './Box' export {default as Box} from './Box'
export type {IBox} from './Box' export type {IBox} from './Box'
export {isPrism} from './derivations/IDerivation' export {isPrism} from './derivations/Interface'
export type {Prism} from './derivations/IDerivation' export type {Prism} from './derivations/Interface'
export {default as iterateAndCountTicks} from './derivations/iterateAndCountTicks' export {default as iterateAndCountTicks} from './derivations/iterateAndCountTicks'
export {default as iterateOver} from './derivations/iterateOver' export {default as iterateOver} from './derivations/iterateOver'
export {default as prism} from './derivations/prism/prism' export {default as prism} from './derivations/prism/prism'