From 2e8e3c858a666fef13a792d65d5b5410dabd6d62 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Wed, 25 May 2022 23:58:08 +0200 Subject: [PATCH] refactor: sick linguistics --- lib/Capsule.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Capsule.ts b/lib/Capsule.ts index 00730b9..295b03f 100644 --- a/lib/Capsule.ts +++ b/lib/Capsule.ts @@ -15,10 +15,10 @@ class CapsuleSubscription implements ISubscription { interface Stringable { toString(): string; } -type Capsable = Stringable | string | null; +type Captable = Stringable | string | null; export type MaybeCapsule = T | Capsule; -export default class Capsule { +export default class Capsule { private watchers: Array<(newVal: T) => void> | null = null; private afterWatchers: Array<(newVal: T) => void> | null = null; private value: T; @@ -30,7 +30,7 @@ export default class Capsule { this.isString = typeof val === "string"; } - static new(val: MaybeCapsule): Capsule { + static new(val: MaybeCapsule): Capsule { if (val instanceof Capsule) { return val; } else {