Skip to content

Commit

Permalink
refactor: reduceLazy move to strict folder (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppeeou authored Feb 18, 2024
1 parent 7fd7a9e commit 84ca545
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/Lazy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import pipeLazy from "./pipeLazy";
import pluck from "./pluck";
import prepend from "./prepend";
import range from "./range";
import reduceLazy from "./reduceLazy";
import reject from "./reject";
import repeat from "./repeat";
import reverse from "./reverse";
Expand Down Expand Up @@ -71,7 +70,6 @@ export {
prepend,
range,
reject,
reduceLazy,
repeat,
reverse,
scan,
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import pipe1 from "./pipe1";
import prop from "./prop";
import props from "./props";
import reduce from "./reduce";
import reduceLazy from "./reduceLazy";
import size from "./size";
import some from "./some";
import sort from "./sort";
Expand Down Expand Up @@ -120,6 +121,7 @@ export {
prop,
props,
reduce,
reduceLazy,
size,
unless,
some,
Expand Down
8 changes: 4 additions & 4 deletions src/Lazy/reduceLazy.ts → src/reduceLazy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import reduce from "../reduce";
import type IterableInfer from "../types/IterableInfer";
import type { AsyncReducer, SyncReducer } from "../types/Reducer";
import type ReturnValueType from "../types/ReturnValueType";
import reduce from "./reduce";
import type IterableInfer from "./types/IterableInfer";
import type { AsyncReducer, SyncReducer } from "./types/Reducer";
import type ReturnValueType from "./types/ReturnValueType";

type InferCarrier<T> = T extends AsyncIterable<infer R>
? AsyncIterable<R>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { pipe, toAsync } from "../../src";
import reduceLazy from "../../src/Lazy/reduceLazy";
import * as Test from "../../src/types/Test";
import { pipe, toAsync } from "../src";
import reduceLazy from "../src/reduceLazy";
import * as Test from "../src/types/Test";

const { checks, check } = Test;

Expand Down
2 changes: 1 addition & 1 deletion website/function.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"pluck",
"prepend",
"range",
"reduceLazy",
"reject",
"repeat",
"reverse",
Expand Down Expand Up @@ -97,6 +96,7 @@
"prop",
"props",
"reduce",
"reduceLazy",
"size",
"some",
"sort",
Expand Down

0 comments on commit 84ca545

Please sign in to comment.