Skip to content

Commit

Permalink
Patch Restored DotPath v0.1.63
Browse files Browse the repository at this point in the history
  • Loading branch information
REllEK-IO committed May 9, 2024
1 parent a0e2927 commit 026f756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type KeyedSelector = {
* Originally used a DotPath<T> parameter to ease the developer experience, but recent versions made the approach unfeasible
*/
export const createConceptKeyedSelector =
<T extends object>(conceptName: string, keys: DotPath<T>, setKeys?: (number|string)[]): KeyedSelector => {
<T extends Record<string, unknown>>(conceptName: string, keys: DotPath<T>, setKeys?: (number|string)[]): KeyedSelector => {
const selectorBase = [conceptName, ...keys.split('.')];
if (setKeys) {
return {
Expand All @@ -52,7 +52,7 @@ export const createConceptKeyedSelector =
* @param keys - type string - Format is 'key0.key1.key3' for deep nested key values
* Originally used a DotPath<T> parameter to ease the developer experience, but recent versions made the approach unfeasible
*/
export const createUnifiedKeyedSelector = <T extends object>(
export const createUnifiedKeyedSelector = <T extends Record<string, unknown>>(
concepts: Concepts,
semaphore: number,
keys: DotPath<T>,
Expand Down

0 comments on commit 026f756

Please sign in to comment.