From 7c12fa80039799eaedd0c83436df71d30560e4da Mon Sep 17 00:00:00 2001 From: Aadit M Shah Date: Tue, 6 Feb 2024 13:52:23 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Make=20the=20`None`=20class=20const?= =?UTF-8?q?ructor=20`public`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no good reason for the `None` class constructor to be private. We should let developers create new instances of `None` if they want. --- src/option.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option.ts b/src/option.ts index b2e7dba..f62f70c 100644 --- a/src/option.ts +++ b/src/option.ts @@ -74,7 +74,7 @@ export class None extends OptionTrait { public override readonly isNone = true; - private constructor() { + public constructor() { super(); }