AngularJS autocomplete visual studio code

0

I'm creating an API for angularjs and I know that in vs code you can write a d.ts file that defines the types and other things in the IDE. I already created this file index.d.ts for autocomplete and it worked for global variables and etc.

Code that defines the types of my service

declare var $ticket: sgtalk.$ticket;

export as namespace $ticket;

export = $ticket;

declare namespace sgtalk {
    interface $ticket {
        /**
         * @returns {string} Tipo
         */
        getSimpleList(): Object;

        /**
         * @param {number} display O número que descreve o ticket
         */
        getTicketData(display: number): Object;

        // answer()

        // senTicketData()
    }
} 

Demonstrating how intellisense is

TheproblemisthatwhenIputthissamenameintheInjectofangularitdoesnotdetectwhatitis.

I did a quick search on the internet but found nothing that could help me.

    
asked by anonymous 31.07.2017 / 20:08

0 answers