wilded
3/18/2019 - 2:21 PM

Installing Ramda Library in Vue.js

1- npm install --save vue-ramda
2- npm install --save-dev types/npm-ramda

3- At: vue/src/ambient.d.ts file 
Add: declare module 'vue-ramda';

4- At: vue/src/main.ts
Add: import '@/plugins/vue-ramda';

5- Create New File:  vue/src/plugins/vue-ramda.ts 
With the following content: 
import Vue from 'vue';
import VueRamda from 'vue-ramda';
Vue.use(VueRamda);

6- At: vue/src/vue-properties.d.ts
Add: $R: any; in the Declare Module Interface section.