What is the purpose of the declare keyword? type Callback = (err: Error | String, data: Array<CalledBackData>) => void; vs. declare type Callback = (err: Error | String, data:Array<CalledBackData>)...
  • May 23, 2022
  • 0 Comments
What does Record<K, T> mean in Typescript? Typescript 2.1 introduced the Record type, describing it in an example: // For every properties K of type T, transform it to...
  • May 7, 2022
  • 0 Comments
I have a very simple functional component as follows: import * as React from 'react'; export interface AuxProps { children: React.ReactNode } const aux = (props: AuxProps) => props.children;...
  • May 3, 2022
  • 0 Comments