-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS types are missing from built npm package #748
Comments
Actually I noticed that the generated import Binary from "./binary.js";
import Component from "./component.js";
import ComponentParser from "./component_parser.js";
import Duration from "./duration.js";
import Event from "./event.js";
import Period from "./period.js";
import Property from "./property.js";
import Recur from "./recur.js";
import RecurExpansion from "./recur_expansion.js";
import RecurIterator from "./recur_iterator.js";
import Time from "./time.js";
import Timezone from "./timezone.js";
import TimezoneService from "./timezone_service.js";
import UtcOffset from "./utc_offset.js";
import VCardTime from "./vcard_time.js";
import parse from "./parse.js";
import stringify from "./stringify.js";
import design from "./design.js";
import * as helpers from "./helpers.js"; Should it import from the |
It should not be importing from the |
Maybe what Temzasse is referring to how the JS files are not in For me I'm seeing The types are defined only in JSDoc and need accompanying What I find strange is that when I run jsdoc, it doesn't generate files with the expected TS declaration extension. |
I merged two PRs that might have fixed this issue. Once I get a go-ahead from @jannikac I will spin a new release to make it available on npm. Could anyone having issues here try again with the latest code from main? |
This fixed it for me. |
Super, thanks for reporting back. @Temzasse if this is not fixed for you please feel free to reopen or file a new issue. |
The types have been released as part of version 2.1.0 which is now available on npm. |
Hi 👋🏻
When importing this library the TS types are not found:
It seems that the TS types are not part of the packaged library artefact: https://www.npmjs.com/package/ical.js?activeTab=code
I tried to clone and build the lib locally and the types are generated just fine so the problem is probably related to the npm publishing phase.
Thanks in advance!
The text was updated successfully, but these errors were encountered: