Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 79507200BF7 for ; Mon, 9 Jan 2017 23:40:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7807A160B3E; Mon, 9 Jan 2017 22:40:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C0CEE160B2F for ; Mon, 9 Jan 2017 23:40:55 +0100 (CET) Received: (qmail 53149 invoked by uid 500); 9 Jan 2017 22:40:54 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 53137 invoked by uid 99); 9 Jan 2017 22:40:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 22:40:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3470D1803A2 for ; Mon, 9 Jan 2017 22:40:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bIxr8tOomqVr for ; Mon, 9 Jan 2017 22:40:52 +0000 (UTC) Received: from mail-qt0-f176.google.com (mail-qt0-f176.google.com [209.85.216.176]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C897F5F486 for ; Mon, 9 Jan 2017 22:40:51 +0000 (UTC) Received: by mail-qt0-f176.google.com with SMTP id x49so83977974qtc.2 for ; Mon, 09 Jan 2017 14:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=Z+ANOCu/dBEkTEar7CI3xbKfxpB6y5aP5jHsknvRy1Y=; b=BBANLT3f2NaFH+wd1H1Pwf0F8kL8omDL8XHfEm0dcEt1k3FwXJP4OWi8tCB/TBx1Hi 2lU3jkUYL/MN9Oq23wKazHbIDEB/astL07Kg5J84QZt8urNFEiimi/yvi3rV5g9UyaJl SR7TtfoVVsC1KDmnSM4hTH0TbwZDhACu1J1jzYLjQD0Z9A2Xent/gZr8wwh3ldzHiMzz 0FNZOsv4ZWAG0y5VtdTgx7z+XgBXMjVr3WfIa/x9R9qLWsMX9NQEKCiuuua7Ek3AJikU iFaXz3wQp4wjIto8d1vO6bIpTqlRLK0jEB2OcsM60+VVW6ZVQgHUhVl+/S1g12H/fI0l vPOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=Z+ANOCu/dBEkTEar7CI3xbKfxpB6y5aP5jHsknvRy1Y=; b=KB3VEnwYrjrM5Srl7n5xPfP8hQHXe+HXsqnyn6bt2umRgHwKzvj1Fcqnsay5txqwif MYDUsFTwyiu2xQu+fzsZNeIpQf/0TcM9jEvuixQg2mgfJTvrxY33xPfv21zFIjn0aTxk pSADgRkOA3HxwZNZmmTsvkkzzHUcj/Eaaq9OP1YrJyAGPUup/bsie2+WMT1XtGbXKOMi g18bwV9rySQzk5/jaaGX4B4KKvC5auhob7QVgzodKcHT8RNMdGsUPn6ZeWV+gsHdQAoH F2uOgAWayMOKhFAsN7ALqyq5eW79nz6lq0W7K6oP9mAvSSG2sGaxPz00uolRgz1i3FqI Vzng== X-Gm-Message-State: AIkVDXL//sMSPaj9dhM2NAcO6Yl16p47BDTBFChx9e3CH51E59fF+YmTKtDSsXTs7N7z/w== X-Received: by 10.237.35.140 with SMTP id j12mr28895qtc.5.1484001648289; Mon, 09 Jan 2017 14:40:48 -0800 (PST) Received: from mikes-mbp-2.fios-router.home (pool-71-117-132-50.prvdri.fios.verizon.net. [71.117.132.50]) by smtp.gmail.com with ESMTPSA id v184sm1431404qkc.34.2017.01.09.14.40.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2017 14:40:47 -0800 (PST) From: Mike Hartington Content-Type: multipart/alternative; boundary="Apple-Mail=_5117FFF4-3927-4650-9DFA-C6572165C73A" Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [DISCUSS] Include TypeScript definitions in plugins Date: Mon, 9 Jan 2017 17:40:47 -0500 References: <216DC1F8-58A7-4E66-906B-C2CB5BD37F15@microsoft.com> To: dev@cordova.apache.org In-Reply-To: Message-Id: <50225F9F-E23B-4EF9-8703-34772BA99EC1@gmail.com> X-Mailer: Apple Mail (2.3259) archived-at: Mon, 09 Jan 2017 22:40:56 -0000 --Apple-Mail=_5117FFF4-3927-4650-9DFA-C6572165C73A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 = Mike Hartington > On Jan 9, 2017, at 5:38 PM, Victor Sosa = wrote: >=20 > +1... I love this idea! Will help a lot to static analysis tools and = IDEs. >=20 > On Mon, Jan 9, 2017 at 3:56 PM Shazron wrote: >=20 >> 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) >>=20 >> On Mon, Jan 9, 2017 at 5:23 AM, Vladimir Kotikov (Akvelon) < >> v-vlkoti@microsoft.com> wrote: >>=20 >>> Hey, everybody! >>>=20 >>> I=E2=80=99d 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. >>>=20 >>> 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). >>>=20 >>> 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 >>>=20 >>> Does anyone have any considerations/objections about this proposal? >>>=20 >>> - >>> [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 >>>=20 >>> - >>> Best regards, Vladimir >>>=20 >>>=20 >>>=20 >>> - >>> Best regards, Vladimir >>>=20 >>>=20 >>>=20 >>=20 --Apple-Mail=_5117FFF4-3927-4650-9DFA-C6572165C73A--