Answer the question
In order to leave comments, you need to log in
How to disable global type definition for variables in typescript?
I read TypeScript Deep Dive and found out that the variables declared in each project file are globally defined for typescript.
For example:
// foo.ts
const foo = 'foo'
// bar.ts Другой файл проекта
const bar = foo
export const __ = null
const foo = 'foo'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question