facebook

[CI-8 preview] Typescript error on object

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #536023 Reply

    John
    Participant

    CONFIG
    * WIn 7
    * Welclipse version 59 (version.txt)
    *

    REPRO STEPS

    
    class mycLCass {
      private linkDB: Object = {}; 
    
      constructor() {
       this.linkDB[ 'bob' ] = 123; 
      }
    }
    

    ERROR

    Element implicitly has an ‘any’ type because type ‘Object’ has no index signature.

    NOTE
    * preset after restart and/or clean
    * log attached after clean restart

    Attachments:
    You must be logged in to view attached files.
    #536033 Reply

    John
    Participant

    found the culprit. new project has an updated tsconfig which uses noimplicit any.

    Consider this resolved (Id10t error).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [CI-8 preview] Typescript error on object

You must be logged in to post in the forum log in