From a32f62cfc6c6a8ae19410148ad684feb4a6a093d Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Mon, 23 Dec 2019 15:12:48 +0200
Subject: [PATCH] typescript(option): fix: fixed the type definition for count

Signed-off-by: prescientmoon <git@moonythm.dev>
---
 typescript/option/src/helpers/count.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typescript/option/src/helpers/count.ts b/typescript/option/src/helpers/count.ts
index 6cdb30d..b47ef46 100644
--- a/typescript/option/src/helpers/count.ts
+++ b/typescript/option/src/helpers/count.ts
@@ -1,4 +1,4 @@
 import { isSome } from './isSome'
-import { compL } from '@thi.ng/compose'
+import { Option } from '../types'
 
-export const count = compL(isSome, Number)
+export const count = <T>(option: Option<T>) => Number(isSome(option))