From ff81096e6f47749386b65e15db20bd00950a1c64 Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Mon, 23 Dec 2019 14:25:10 +0200
Subject: [PATCH] typescript(option): refactor: rewrote Some as a typecasted
 identity typescript(option): typescript(option): The Some function did
 nothing at runtime so a typecasted identity did the job

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

diff --git a/typescript/option/src/types.ts b/typescript/option/src/types.ts
index 016853e..005e415 100644
--- a/typescript/option/src/types.ts
+++ b/typescript/option/src/types.ts
@@ -1,4 +1,4 @@
-import { none } from './internals'
+import { none, identity } from './internals'
 import { Brand } from 'utility-types'
 
 // This is never actually used outside of typing so we can just declare it
@@ -13,4 +13,4 @@ export const None = {
     __brand: none,
     toString: () => 'None'
 } as None
-export const Some = <T>(value: T) => value as Option<T>
+export const Some = identity as <T>(value: T) => Option<T>