Answers for "cannot use namespace as a type typescript"

0

typescript cannot find namespace

in tsconfig file which should be:
"module": "commonjs"
Posted by: Guest on June-08-2021
0

typescript namespace example

namespace Person {
   export function setName(name: string) {
      return name
   }
}

const res = Person.setName("john doe")
console.log(res)
Posted by: Guest on November-17-2021

Code answers related to "cannot use namespace as a type typescript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language