From e8ea0e344e8d712b26adebd908b1a35a62b5ac80 Mon Sep 17 00:00:00 2001 From: Andrew Wright Date: Wed, 12 Jul 2017 13:46:46 -0400 Subject: [PATCH] Installing two `require` definition causes errors One must choose either `node` or `requirejs`, both will give conflict error --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59ff731..f4159e1 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,9 @@ This is caused by the [way the template loader works](#how-does-it-work). > The Typescript transpiler doesn't have any typings for the `require` method, which was generated by the loader. -We recommend the installation of type defintions, which contain a declaration of the `require` method. +We recommend the installation of **one** of the type defintions, which contain a declaration of the `require` method. - [@types/node](https://www.npmjs.com/package/@types/node) | [dt~node](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/node/node.d.ts) + +or + - [@types/requirejs](https://www.npmjs.com/package/@types/requirejs) | [dt~requirejs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/requirejs)