Skip to content

Commit

Permalink
Add JSDoc annotations and optimize package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
hiletmis committed Dec 4, 2023
1 parent 99cae26 commit a835657
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .changeset/heavy-bats-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'beta-logos': patch
---

- JSDoc annotations added to `beta-logos` package.
- `beta-logos` package now exports `Logo` as svg string.
- `beta-logos` package now exports `Logo` as React component.
- Package size reduced.

4 changes: 2 additions & 2 deletions helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function generateDocAnnotation(description, batchName, example) {
* import { ${batchName} } from 'beta-logos';
*
* const App = () => {
* return <${batchName} id="${example}" />;
* return <${batchName} id="${example}" />;
* }
* \`\`\`
*
Expand All @@ -111,7 +111,7 @@ function generateDocAnnotation(description, batchName, example) {
* import { ${batchName} } from 'beta-logos';
*
* const App = () => {
* return <${batchName} id="${example}" width="64" height="64" />;
* return <${batchName} id="${example}" width="64" height="64" />;
* }
* \`\`\`
*
Expand Down

0 comments on commit a835657

Please sign in to comment.