Skip to content

Commit

Permalink
Import typescript-collections in a webpack 5 compatible way
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Rodriguez Rivero committed Dec 7, 2020
1 parent 086c4ed commit 878c576
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/DefaultKeyFunction.ts
@@ -1,4 +1,4 @@
import * as Collections from 'typescript-collections'
import * as Collections from 'typescript-collections/dist/lib'

/**
* The default Key Function.
Expand Down
2 changes: 1 addition & 1 deletion src/system/AbstractGraph.ts
@@ -1,5 +1,5 @@
import { BasicEdge, ReadonlyUnweightedGraph } from '../types/GraphSystem'
import { DefaultDictionary, Dictionary, Set } from 'typescript-collections'
import { DefaultDictionary, Dictionary, Set } from 'typescript-collections/dist/lib'
import { defaultToKeyFunction } from '../DefaultKeyFunction'

export abstract class AbstractGraph<V, E> implements ReadonlyUnweightedGraph<V, E> {
Expand Down
2 changes: 1 addition & 1 deletion src/util/FindShortestPath.ts
@@ -1,4 +1,4 @@
import { Dictionary, Queue, Set } from 'typescript-collections'
import { Dictionary, Queue, Set } from 'typescript-collections/dist/lib'
import { ReadonlyGraph } from '../types/GraphSystem'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/util/HasCycle.ts
@@ -1,4 +1,4 @@
import { Set } from 'typescript-collections'
import { Set } from 'typescript-collections/dist/lib'
import { ReadonlyGraph, ReadonlyUnweightedGraph } from '../types/GraphSystem'

const startSymbol = Symbol('start')
Expand Down
2 changes: 1 addition & 1 deletion src/util/MaxFlow.ts
@@ -1,4 +1,4 @@
import { Dictionary, Queue, Set } from 'typescript-collections'
import { Dictionary, Queue, Set } from 'typescript-collections/dist/lib'
import { mapEdges } from './functional'
import { findShortestPath } from './FindShortestPath'
import { MutableWeightedGraph, ReadonlyWeightedGraph } from '../types/GraphSystem'
Expand Down
2 changes: 1 addition & 1 deletion src/util/TopologicalSort.ts
@@ -1,6 +1,6 @@
import { ReadonlyGraph } from '../types/GraphSystem'
import { hasCycle } from './HasCycle'
import { DefaultDictionary, Queue } from 'typescript-collections'
import { DefaultDictionary, Queue } from 'typescript-collections/dist/lib'

/**
* Topologically sorts the nodes the in the graph.
Expand Down
2 changes: 1 addition & 1 deletion src/util/functional/GraphSubset.ts
@@ -1,4 +1,4 @@
import { Set } from 'typescript-collections'
import { Set } from 'typescript-collections/dist/lib'
import { MutableUnweightedGraph, ReadonlyGraph } from '../../types/GraphSystem'
import { createEmptyGraphInstance } from './CreateEmptyGraphInstance'

Expand Down

0 comments on commit 878c576

Please sign in to comment.