jira.js
jira.js copied to clipboard
5.2.0+ Missing models/parameters in dist
It seems 5.2.0 version and onwards is missing all the classes in the models and parameters folders, in both cjs and esm:
This causes code importing those to not build:
src/jira.ts:5:59 - error TS2307: Cannot find module 'jira.js/version3/parameters' or its corresponding type declarations.
5 import { SearchForIssuesUsingJqlEnhancedSearchPost } from 'jira.js/version3/parameters'
Hi @matejdro! Please try this one:
import { Version3Parameters } from 'jira.js'
const search: Version3Parameters.SearchForIssuesUsingJqlEnhancedSearchPost;
Thanks that works! Although it's not initially what IntelliJ/Webstorm wants to import. Maybe there is a discrepancy between the source files and the dist?
Maybe this could be added to one of the samples in the README?
It’s strange that it suggests pulling this type from there, since I didn’t create an alias — but it looks like it would be possible to add one