How to solve the problem that typescript hangs an error report on the property on window?

how to solve the problem of compiling errors directly

window.isWeixin = os.weixin ? os.weixin : false;

I just want to hang it on window. Is there any good way to solve this problem

Mar.28,2021

the any method above can certainly solve all the problems. Let me add two more beautiful methods.

  1. methods that can be used throughout the project, applicable to custom properties

      

    ( window) .xx = aaa

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ae2a-4eeb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ae2a-4eeb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?