Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
wdy need to track those types of arguments? when you create or consume an API there's a contract (on REST APIs) or a Schema (in GraphQL APIs) so you'll know which kind of data you are retrieving at this exact point.
BTW most of time you don't need to have a specific type.
Imagine you retrieve data from whatever source and you need to print this data inside some node element, something like
/*
* Receives an object with the props
* name
* age
*/
function doStuff(data) {
return `Hello ${data.name}, we'll send you a cake for your ${data.age} birthday!`;
}
Can you spot any issue for having dynamic typed props here?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Or use JSDoc...
wdy need to track those types of arguments? when you create or consume an API there's a contract (on REST APIs) or a Schema (in GraphQL APIs) so you'll know which kind of data you are retrieving at this exact point.
BTW most of time you don't need to have a specific type.
Imagine you retrieve data from whatever source and you need to print this data inside some node element, something like
Can you spot any issue for having dynamic typed props here?