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

Imp (types): Improved types for List data and it's meta #109

Merged
merged 8 commits into from
Nov 6, 2024

Conversation

e11sy
Copy link
Contributor

@e11sy e11sy commented Nov 6, 2024

  • Improved Types
  • Improved playground

README.md Outdated Show resolved Hide resolved
@@ -188,15 +188,15 @@ export default class ListTabulator<Renderer extends ListRenderer> {
/**
* Set start property value from initial data
*/
if (this.data.start !== undefined) {
this.changeStartWith(this.data.start);
if ((this.data.meta as OrderedListItemMeta).start !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if ((this.data.meta as OrderedListItemMeta).start !== undefined) {
if ('start' in this.data.meta) {

src/index.ts Show resolved Hide resolved
@e11sy e11sy merged commit d92ff75 into release/2.0 Nov 6, 2024
1 check passed
@e11sy e11sy deleted the improve-item-meta branch November 6, 2024 19:36
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.

2 participants