Unify Derivation and Prism 9/n
This commit is contained in:
parent
27b9c96afd
commit
3552f50613
12 changed files with 12 additions and 12 deletions
|
@ -1,15 +1,15 @@
|
|||
import get from 'lodash-es/get'
|
||||
import isPlainObject from 'lodash-es/isPlainObject'
|
||||
import last from 'lodash-es/last'
|
||||
import type {Prism} from './derivations/Interface'
|
||||
import {isPrism} from './derivations/Interface'
|
||||
import type {Prism} from './prisms/Interface'
|
||||
import {isPrism} from './prisms/Interface'
|
||||
import type {Pointer, PointerType} from './pointer'
|
||||
import {isPointer} from './pointer'
|
||||
import pointer, {getPointerMeta} from './pointer'
|
||||
import type {$FixMe, $IntentionalAny} from './types'
|
||||
import type {PathBasedReducer} from './utils/PathBasedReducer'
|
||||
import updateDeep from './utils/updateDeep'
|
||||
import prism from './derivations/prism/prism'
|
||||
import prism from './prisms/prism/prism'
|
||||
|
||||
type Listener = (newVal: unknown) => void
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type {Prism} from './derivations/Interface'
|
||||
import prism from './derivations/prism/prism'
|
||||
import type {Prism} from './prisms/Interface'
|
||||
import prism from './prisms/prism/prism'
|
||||
import Emitter from './utils/Emitter'
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,7 @@ import pointer from './pointer'
|
|||
import type {IBox} from './Box'
|
||||
import Box from './Box'
|
||||
import type {$FixMe, $IntentionalAny} from './types'
|
||||
import prism from './derivations/prism/prism'
|
||||
import prism from './prisms/prism/prism'
|
||||
|
||||
/**
|
||||
* Allows creating pointer-derivations where the pointer can be switched out.
|
||||
|
|
|
@ -8,11 +8,11 @@ export type {IdentityPrismProvider} from './Atom'
|
|||
export {default as Atom, val, pointerToPrism} from './Atom'
|
||||
export {default as Box} from './Box'
|
||||
export type {IBox} from './Box'
|
||||
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'
|
||||
export {isPrism} from './prisms/Interface'
|
||||
export type {Prism} from './prisms/Interface'
|
||||
export {default as iterateAndCountTicks} from './prisms/iterateAndCountTicks'
|
||||
export {default as iterateOver} from './prisms/iterateOver'
|
||||
export {default as prism} from './prisms/prism/prism'
|
||||
export {default as pointer, getPointerParts, isPointer} from './pointer'
|
||||
export type {Pointer, PointerType} from './pointer'
|
||||
export {default as Ticker} from './Ticker'
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @jest-environment jsdom
|
||||
*/
|
||||
import Atom, {val} from './Atom'
|
||||
import prism from './derivations/prism/prism'
|
||||
import prism from './prisms/prism/prism'
|
||||
import Ticker from './Ticker'
|
||||
|
||||
describe(`v2 atom`, () => {
|
||||
|
|
Loading…
Reference in a new issue