Unify Derivation and Prism 3/n
This commit is contained in:
parent
bfba1d4879
commit
06808f99e9
8 changed files with 12 additions and 12 deletions
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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<V>(
|
||||
pointerOrDerivation: Prism<V> | Pointer<V>,
|
||||
|
|
|
@ -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<V>(
|
||||
pointerOrDerivation: Prism<V> | Pointer<V>,
|
||||
|
|
|
@ -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 = () => {}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue