From 87e733acc5d22bcbd9bbcbdb76307c91fb08d40f Mon Sep 17 00:00:00 2001 From: Tomer Aberbach Date: Mon, 18 Nov 2024 22:35:58 -0500 Subject: [PATCH] docs: better types for other docs --- website/src/pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 3a81a5d..c3e48ac 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -153,7 +153,7 @@ const FEATURES: readonly FeatureItem[] = [ import { filter, flatMap, map, pipe, reduce, toGrouped, toMap, toSet } from 'lfi' import zoo from 'zoo' - const getSlothNamesByAge = zoo => + const getSlothNamesByAge = () => pipe( zoo.exhibits, flatMap(exhibit => exhibit.animals), @@ -162,7 +162,7 @@ const FEATURES: readonly FeatureItem[] = [ reduce(toGrouped(toSet(), toMap())), ) - console.log(getSlothNamesByAge(zoo)) + console.log(getSlothNamesByAge()) //=> Map(3) { //=> 7 => Set(2) { 'strawberry', 'bitsy' }, //=> 19 => Set(1) { 'max' },