From 62224ca07f91399f71d687d6347569eb87e8f879 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Mon, 3 Oct 2016 16:56:47 +0100 Subject: [PATCH 1/2] chore(docs): add typeless package instructions --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 29eb76208584..a14c9dab8c90 100644 --- a/README.md +++ b/README.md @@ -343,6 +343,17 @@ npm install d3 --save npm install @types/d3 --save-dev ``` +If the library doesn't have typings available at `@types/`, you can still use it by +manually adding typings for it: +``` +// in src/typings.d.ts +declare module "typeless-package"; + +// in src/app/app.component.ts +import * as typelessPackage from 'typeless-package'; +typelessPackage.method(); +``` + ### Global Library Installation Some javascript libraries need to be added to the global scope, and loaded as if From f8de6cbeee7e4f672724398602592ce3ec744de6 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Mon, 3 Oct 2016 16:59:01 +0100 Subject: [PATCH 2/2] replace " with ' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a14c9dab8c90..ac0e186f2bee 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,7 @@ If the library doesn't have typings available at `@types/`, you can still use it manually adding typings for it: ``` // in src/typings.d.ts -declare module "typeless-package"; +declare module 'typeless-package'; // in src/app/app.component.ts import * as typelessPackage from 'typeless-package';