Skip to content

Commit f05239d

Browse files
committed
fix: types
1 parent 9582e21 commit f05239d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/helpers.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ export function stringToBoolean(value: string): boolean {
3636
return value.toLowerCase() !== 'false' && value !== '0';
3737
}
3838

39-
export function stringToProperty(obj: object): (value: string) => boolean {
40-
return (value: string): boolean => {
41-
return obj[value];
42-
};
39+
export function stringToProperty(obj: object): (value: string) => any {
40+
return (value: string): any => obj[value];
4341
}
4442

4543
export function getSearchParams(

0 commit comments

Comments
 (0)