Join Slack
Powered by
Hi, how do I add dependencies when I need them in ...
# prisma-whats-new
j
Jeremy
11/28/2017, 2:06 AM
Hi, how do I add dependencies when I need them in a function?
i
iamclaytonray
11/28/2017, 2:53 AM
npm install dep
or
yarn add dep
iamclaytonray
11/28/2017, 2:53 AM
And then
import dep from 'dep';
iamclaytonray
11/28/2017, 2:53 AM
Functions are just normal JavaScript (or TypeScript) functions
iamclaytonray
11/28/2017, 2:53 AM
Typically, you namespace imports in TS, though
2
Views
Open in Slack
Previous
Next