#tutorial
Read more stories on Hashnode
Articles with this tag
⭐ Assigning Types to Variables ⭐ We have an interface that represents a user within our system: interface User { id: number; firstName: string; ...
⭐ Optional Parameters ⭐ Consider this getName function: export const getName = (first: string, last: string) => { if (last) { return `${first}...
⭐ Set Properties as Optional ⭐ Consider this getName function: export const getName = (params: { first: string; last: string }) => { if...
⭐ Working with Object Params ⭐ Consider this addTwoNumbers function: export const addTwoNumbers = (a, b) => { return a + b } This function takes in...
⭐ The Implicit ‘Any’ Type Error ⭐ We have this addTwoNumbers function: export const addTwoNumbers = (a, b) => { return a + b } This function takes...