Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaweilee authored Feb 13, 2025
1 parent 6fc2c62 commit 1b5b69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/builtins/API/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const HANDLERS = {
if (Array.isArray(prop.items)) return (
<span>
<Token>{'['}</Token>
{prop.items.map((item: Extract<PropertySchema, { type: 'array' }>, i) => (
{prop.items.map((item, i) => (
<span key={`${i}`}>
{i > 0 && ', '}
{this.toNode(item)}
Expand Down

0 comments on commit 1b5b69b

Please sign in to comment.