Skip to content

Commit

Permalink
refactor(rstream): update type-only imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 7, 2020
1 parent 6407f7d commit cdf5d62
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/rstream/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Fn, Fn0, IDeref, IID, ILogger, NULL_LOGGER } from "@thi.ng/api";
import type { Transducer } from "@thi.ng/transducers";
import { Stream } from "./stream";
import { Subscription } from "./subscription";
import type { Stream } from "./stream";
import type { Subscription } from "./subscription";

export enum State {
IDLE,
Expand Down
2 changes: 1 addition & 1 deletion packages/rstream/src/forkjoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import type { CommonOpts, ISubscribable, ITransformable } from "./api";
import { sync } from "./stream-sync";
import { tunnel } from "./subs/tunnel";
import { Subscription } from "./subscription";
import type { Subscription } from "./subscription";

export interface ForkJoinOpts<IN, MSG, RES, OUT> extends Partial<CommonOpts> {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/rstream/src/from/promises.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mapcat } from "@thi.ng/transducers";
import type { CommonOpts } from "../api";
import { Subscription } from "../subscription";
import type { Subscription } from "../subscription";
import { optsWithID } from "../utils/idgen";
import { fromPromise } from "./promise";

Expand Down
2 changes: 1 addition & 1 deletion packages/rstream/src/subs/sidechain-partition.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Predicate } from "@thi.ng/api";
import { CommonOpts, ISubscribable, State } from "../api";
import { Subscription } from "../subscription";
import type { Subscription } from "../subscription";
import { optsWithID } from "../utils/idgen";
import { ASidechain } from "./asidechain";

Expand Down
2 changes: 1 addition & 1 deletion packages/rstream/src/subs/sidechain-toggle.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Predicate } from "@thi.ng/api";
import { CommonOpts, ISubscribable, State } from "../api";
import { Subscription } from "../subscription";
import type { Subscription } from "../subscription";
import { optsWithID } from "../utils/idgen";
import { ASidechain } from "./asidechain";

Expand Down
2 changes: 1 addition & 1 deletion packages/rstream/src/subs/transduce.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Reducer, Transducer } from "@thi.ng/transducers";
import { isReduced, Reduced } from "@thi.ng/transducers";
import { Subscription } from "../subscription";
import type { Subscription } from "../subscription";

/**
* Returns a promise which subscribes to given input and transforms
Expand Down
4 changes: 2 additions & 2 deletions packages/rstream/src/trigger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommonOpts } from "./api";
import type { CommonOpts } from "./api";
import { fromIterableSync } from "./from/iterable";
import { Stream } from "./stream";
import type { Stream } from "./stream";
import { optsWithID } from "./utils/idgen";

/**
Expand Down

0 comments on commit cdf5d62

Please sign in to comment.