Skip to content

Add TypeScript typings for addIconParts#343

Open
lhapaipai wants to merge 2 commits intospatialillusions:masterfrom
lhapaipai:typing-iconparts
Open

Add TypeScript typings for addIconParts#343
lhapaipai wants to merge 2 commits intospatialillusions:masterfrom
lhapaipai:typing-iconparts

Conversation

@lhapaipai
Copy link
Copy Markdown
Contributor

Hi!

Small addition : addIconParts was missing its TypeScript declaration in index.d.ts.

This PR adds:

  • the IconPartsFunction type describing the callback signature (iconParts, metadata, colors)
  • the declaration for addIconParts itself
  • its export in the default object type
  • a missing text field on DrawText spotted along the way

Nothing groundbreaking, just making sure TypeScript users get proper autocompletion and type checking when using addIconParts.

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