Please do! 2017-01-09 20:40 GMT-02:00 Mike Hartington <mikeharting...@gmail.com>:
> Types can be in sub-folder. > As long as the type entried just points to the path > > https://www.typescriptlang.org/docs/handbook/declaration- > files/publishing.html <https://www.typescriptlang. > org/docs/handbook/declaration-files/publishing.html> > > > Mike Hartington > > > > > On Jan 9, 2017, at 5:38 PM, Victor Sosa <sosah.vic...@gmail.com> wrote: > > > > +1... I love this idea! Will help a lot to static analysis tools and > IDEs. > > > > On Mon, Jan 9, 2017 at 3:56 PM Shazron <shaz...@gmail.com> wrote: > > > >> Thanks for bringing this up Vladimir, > >> +1 -- but does the .ts definition need to be in the root? I'd rather it > be > >> in a subfolder (either an existing one like 'www' or a new one) > >> > >> On Mon, Jan 9, 2017 at 5:23 AM, Vladimir Kotikov (Akvelon) < > >> v-vlk...@microsoft.com> wrote: > >> > >>> Hey, everybody! > >>> > >>> I’d like to propose/discuss the idea of redistributing Typescript > >>> definitions along with core plugins, so that users who write their apps > >> in > >>> Typescript would get the typings in their projects without additional > >> mess > >>> with 'tsd'/'typings' (these all are the package managers for typescript > >>> declarations) or manual installation from '@types' NPM org. > >>> > >>> As mentioned above, our main goal - to reduce the number of additional > >>> actions needed to either add the plugin to Typescript project or get > the > >>> types information and intellisense for JavaScript projects. Also, this > >>> would reduce the number of network calls to other services (typings > >>> registry, NPM registry) which are known as common points of denial (per > >>> telemetry data). > >>> > >>> The changes are pretty minimal and include adding a d.ts file with type > >>> definitions (taken from DefinitelyTyped[1]) and 'types' entry to > >>> package.json according to Typescript convention [2]. The sample > >>> implementation for camera plugin is here: https://github.com/apache/ > >>> cordova-plugin-camera/compare/master...vladimir-kotikov:add-typings > >>> > >>> Does anyone have any considerations/objections about this proposal? > >>> > >>> - > >>> [1] https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/ > >>> cordova-plugin-camera/index.d.ts > >>> [2] http://www.typescriptlang.org/docs/handbook/declaration- > >>> files/publishing.html > >>> > >>> - > >>> Best regards, Vladimir > >>> > >>> > >>> > >>> - > >>> Best regards, Vladimir > >>> > >>> > >>> > >> > > -- *Frederico Galvão* Diretor de Tecnologia PontoGet Inovação Web ( +55(62) 8131-5720 * www.pontoget.com.br <http://www.pontoget.com/>