From 84ca545ba3d2ba0e80c8d90f75032d6d56ce78b4 Mon Sep 17 00:00:00 2001 From: hw Date: Sun, 18 Feb 2024 20:58:27 +0900 Subject: [PATCH] refactor: reduceLazy move to strict folder (#247) --- src/Lazy/index.ts | 2 -- src/index.ts | 2 ++ src/{Lazy => }/reduceLazy.ts | 8 ++++---- type-check/{Lazy => }/reduceLazy.test.ts | 6 +++--- website/function.json | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) rename src/{Lazy => }/reduceLazy.ts (92%) rename type-check/{Lazy => }/reduceLazy.test.ts (94%) diff --git a/src/Lazy/index.ts b/src/Lazy/index.ts index 5c31baed..222cb7f0 100644 --- a/src/Lazy/index.ts +++ b/src/Lazy/index.ts @@ -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"; @@ -71,7 +70,6 @@ export { prepend, range, reject, - reduceLazy, repeat, reverse, scan, diff --git a/src/index.ts b/src/index.ts index 3c56a873..1b22f994 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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"; @@ -120,6 +121,7 @@ export { prop, props, reduce, + reduceLazy, size, unless, some, diff --git a/src/Lazy/reduceLazy.ts b/src/reduceLazy.ts similarity index 92% rename from src/Lazy/reduceLazy.ts rename to src/reduceLazy.ts index a0784e76..c8951966 100644 --- a/src/Lazy/reduceLazy.ts +++ b/src/reduceLazy.ts @@ -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 extends AsyncIterable ? AsyncIterable diff --git a/type-check/Lazy/reduceLazy.test.ts b/type-check/reduceLazy.test.ts similarity index 94% rename from type-check/Lazy/reduceLazy.test.ts rename to type-check/reduceLazy.test.ts index 587d6cec..a99e7d36 100644 --- a/type-check/Lazy/reduceLazy.test.ts +++ b/type-check/reduceLazy.test.ts @@ -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; diff --git a/website/function.json b/website/function.json index c6c320ed..d6d33600 100644 --- a/website/function.json +++ b/website/function.json @@ -26,7 +26,6 @@ "pluck", "prepend", "range", - "reduceLazy", "reject", "repeat", "reverse", @@ -97,6 +96,7 @@ "prop", "props", "reduce", + "reduceLazy", "size", "some", "sort",