Reputation: 141
Hi I am new at typescript and doing some demo projects using NestJs. I want to integrate redis. I was looking for some typescript friendly packages and found @type/redis here. But all it says is its a type definition of redis github. But I am not understanding how to use them together. Any suggestion will be highly appreciated.
Upvotes: 0
Views: 908
Reputation: 950
Just install both packages: npm install redis @types/redis
and use it in your project: import redis = require('redis')
. Types hints should appear in TypeScript enabled editor.
Upvotes: 1