From 9772ce4bec7120c951b455dec1193d2044e427a4 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Thu, 25 Aug 2022 16:44:19 -0400 Subject: [PATCH] cleanup --- src/Updux.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Updux.ts b/src/Updux.ts index 54e8aa0..5527ab2 100644 --- a/src/Updux.ts +++ b/src/Updux.ts @@ -25,17 +25,6 @@ export type DuxStateSubduxes = keyof C extends never ? unknown : { [K in keyof C]: StateOf }; -// type UnionArrayTypes = A[number]; - -// type ActionType = A extends ActionGenerator ? B : never; - -// type ActionAsObject = Record< ActionType, A > }>; - -// type UnionToIntersection = -// (U extends any ? (k: U)=>void : never) extends ((k: infer I)=>void) ? I : never - -// type ActionsAsObject = ActionAsObject< A[number]> - export class Updux { #localInitial: any = {}; #subduxes; @@ -52,10 +41,6 @@ export class Updux { - return Object.fromEntries(this.#actions.map( a => [ a.type, a ] )); - } - get initial(): TState & DuxStateSubduxes { if (Object.keys(this.#subduxes).length === 0) return this.#localInitial;