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

feat(android, ios, ontableofcontents): update onTableOfContents to re… #18

Closed
wants to merge 1 commit into from

Conversation

jspizziri
Copy link
Contributor

…turn Locator[] for consistency

Links and Locators are not the same and need to be handled differently. To avoid complexity, the library has been update to only deal with Locators and map all Links it returns to Locators.

BREAKING CHANGE: onTableOfContents now returns a Locator[] instead of a Link[]. Update your onTableOfContents callbacks from (toc: Link[]) => {...} to (toc: Locator[]) => {...}.

#11

…turn Locator[] for consistency

Links and Locators are not the same and need to be handled differently. To avoid complexity, the
library has been update to only deal with Locators and map all Links it returns to Locators.

BREAKING CHANGE: onTableOfContents now returns a `Locator[]` instead of a `Link[]`. Update your
`onTableOfContents` callbacks from `(toc: Link[]) => {...}` to `(toc: Locator[]) => {...}`.

#11
@jspizziri
Copy link
Contributor Author

Closing, as this is not the correct solution.

@jspizziri jspizziri closed this Dec 5, 2022
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.

1 participant