Skip to content

Commit

Permalink
re-export types
Browse files Browse the repository at this point in the history
  • Loading branch information
kfiroo committed Feb 4, 2021
1 parent 4b43d1e commit eed8dc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import {Queue} from './Queue'
import {DataFragment, Materializer, MaterializerFactory, Visitor, Node} from './types'
import {every, getByArray, getByString, isObjectLike, take, setByArray, setByString, hasByString} from './utils'

export * from './types'

const REF_DOLLAR = '$'
const QUEUE_INITIAL_SIZE = 1024


const traverse = (obj: any, visit: Visitor) => {
const queue = new Queue<Node>(QUEUE_INITIAL_SIZE)
queue.enqueue({path: [], val: obj})
Expand Down Expand Up @@ -113,7 +114,7 @@ export const createMaterializer: MaterializerFactory = ({observedRoots, depth})

const queue = new Queue<Set<string>>(QUEUE_INITIAL_SIZE)
queue.enqueue(startFromHere.size > 0 ? startFromHere : invalidations)

while (!queue.isEmpty()) {
const paths = queue.dequeue()
paths.forEach(path => {
Expand Down

0 comments on commit eed8dc2

Please sign in to comment.