Search code examples
javascriptnode.jstypescriptnpm-installnpm-publish

I had created a package npm for test and i can't retrieve the params of my function after install it


[enter image description here][1]

import {addTwo} from 'testrol';
console.log(addTwo('2'));
addTwo(2);

**i publish a npm package for test before publish our packages. When i install it (testrol), i can't see the params of my function when my mouse over**

Solution

  • Welcome, calsuoile !

    Did you export the types of your lib?

    You can find more information about how to do it on typescript publishing docs