Skip to content

Commit

Permalink
✨ Make the None class constructor public
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aaditmshah committed Feb 6, 2024
1 parent a3aec1b commit 7c12fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/option.ts
Expand Up @@ -74,7 +74,7 @@ export class None extends OptionTrait {

public override readonly isNone = true;

private constructor() {
public constructor() {
super();
}

Expand Down

0 comments on commit 7c12fa8

Please sign in to comment.