From f2d4d1a863d2dab047d3ebae374e6f2aed82baf0 Mon Sep 17 00:00:00 2001 From: REllEK-IO Date: Mon, 6 May 2024 10:14:50 -0700 Subject: [PATCH] v0.1.59 --- src/model/selector.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/model/selector.ts b/src/model/selector.ts index 88f3e15..6a13f97 100644 --- a/src/model/selector.ts +++ b/src/model/selector.ts @@ -22,7 +22,7 @@ export type KeyedSelector = { * For usage outside of the Axium, or when subscribed to other Axiums */ export const createConceptKeyedSelector = - >(conceptName: string, keys: string, setKeys?: (number|string)[]): KeyedSelector => { + >(conceptName: string, keys: DotPath, setKeys?: (number|string)[]): KeyedSelector => { const selectorBase = [conceptName, ...keys.split('.')]; if (setKeys) { return { @@ -133,7 +133,7 @@ export type DotPath< export const createUnifiedKeyedSelector = ( concepts: Concepts, semaphore: number, - keys: string, + keys: DotPath, setKeys?: (number | string)[] ): KeyedSelector | undefined => { const concept = concepts[semaphore]; @@ -330,8 +330,8 @@ export function selectConcept(concepts: Concepts, name: string): Concept | undef * @param arr a series of keys that points to your targeted slice * @returns DotPath */ -export function createAdvancedKeys(arr: unknown[]): string { - return arr.join('.') as string; +export function createAdvancedKeys(arr: unknown[]): DotPath { + return arr.join('.') as DotPath; } createConceptKeyedSelector<{something: unknown}>('something', 'something.1' as DotPath<{something:unknown}>);