improved npm package declarations