loading...

re: My confusions about TypeScript VIEW POST

FULL DISCUSSION
 
interface SimpleObject {
  [key: string] : any
}

Instead of this you can just use the object type?

myFunc(simpleObj: object): object {...}
code of conduct - report abuse