We are currently in the process of creating TypeScript definitions for a library called args-js, which is designed to parse query strings and provide the results in an object literal format. For example:
?name=miriam&age=26
This input will produce the following output:
{
name: "miriam",
age: 26
}
The challenge we are facing is that the property names cannot be declared in advance for the return value, leading us to consider using a different approach instead of specifying a return value as any
.