ScottHamper / Cookies

JavaScript Client-Side Cookie Manipulation Library
The Unlicense
1.77k stars 169 forks source link

solve typescript error: Could not find a declaration file for module 'cookies-js'. #79

Closed xQuotes closed 6 years ago

xQuotes commented 6 years ago

"typings": "./dist/cookies.d.ts",

djskinner commented 6 years ago

Shouldn't the key be types rather than typings? See https://www.typescriptlang.org/docs/handbook/tsconfig-json.html

A types package is a folder with a file called index.d.ts or a folder with a package.json that has a types field.