svelte-highlight icon indicating copy to clipboard operation
svelte-highlight copied to clipboard

Semantics: `code`, `language` props should be marked as required

Open metonym opened this issue 2 years ago • 0 comments

Currently, the code and language props are marked as optional because they have default values.

They should be typed as required props since the component wouldn't work without them.

  • Highlight: code and language should be required
  • HighlightSvelte: code should be required
  • HighlightAuto: code should be required

metonym avatar Jun 30 '22 00:06 metonym