Skip to content

Commit

Permalink
chore: remove a generic
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas committed Apr 6, 2024
1 parent 7638437 commit 7f60e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ComponentTokens } from './types';
import { isObject, isObjectWithValue } from './utils';

export const get = <T extends string>(tokens: ComponentTokens, path: T) => {
export const get = (tokens: ComponentTokens, path: string) => {
const parts = path.split('.');
let current = tokens;

Expand Down

0 comments on commit 7f60e7f

Please sign in to comment.