Skip to content
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

Export ParsedComponents again #520

Merged
merged 3 commits into from
Sep 2, 2023

Conversation

SferaDev
Copy link
Contributor

@SferaDev SferaDev commented Jul 18, 2023

We are using the public ParsedComponents type, however in feb250d when the interfaces where moved parsing.ts and later to types.ts, ParsedComponents was not re-exported again.

There are other interfaces that went private with that change, up to you to decide which ones you want to re-export.

src/index.ts Outdated
@@ -2,7 +2,7 @@ import { DebugHandler, DebugConsume } from "./debugging";
import * as en from "./locales/en";
import { Chrono, Parser, Refiner } from "./chrono";
import { ParsingResult } from "./results";
import { Component, ParsedResult, ParsingOption, ParsingReference, Meridiem, Weekday } from "./types";
import { Component, ParsedComponents, ParsedResult, ParsingOption, ParsingReference, Meridiem, Weekday } from "./types";

export { en, Chrono, Parser, Refiner, ParsingResult };
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ParsedComponents needs to be exported here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Sorry, that's what I get for not cloning and opening it in the IDE... 🤦🏻

src/index.ts Outdated Show resolved Hide resolved
@wanasit wanasit merged commit 130ade3 into wanasit:master Sep 2, 2023
1 check failed
@wanasit
Copy link
Owner

wanasit commented Sep 2, 2023

Thanks both of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants