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 {