Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Исправление компиляции typescript #121

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

artbear
Copy link
Contributor

@artbear artbear commented Dec 20, 2020

Начал подключать модули typescript и нарвался на различные ошибки компиляции

  • пересечение неймспейсов - v8 и global
  • странные ошибки компиляции

в итоге переделал структуру

  • файл v8.d.ts переименовал и сделал его модулем для импорта, т.к. модуль v8 много где юзается в ноде
  • сделал современный импорт классов\интерфейсов

@orefkov @kuntashov @nixel2007

@artbear artbear added core documentation Improvements or additions to documentation ts and removed core labels Dec 20, 2020
Copy link

@nixel2007 nixel2007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ничего не знаю про кишки снегопата, но работающий импорт и тайпинги - это благо.

@kuntashov
Copy link
Contributor

@artbear не забудь, что Снегопат использует движок JS от Windows Script Host, в нем JS поддерживает только фичи ES5, т.е. это устаревший JS, поэтому велики шансы, что библиотеки из npm могут быть иметь слишком много несовместимостей, чтобы за разумные усилия из портировать под Снегопат.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants