Skip to content

Commit

Permalink
Another type definitions fix 😅
Browse files Browse the repository at this point in the history
  • Loading branch information
jstcki committed Apr 6, 2018
1 parent cade626 commit fec3a78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/catalog/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class ImageSpecimen extends React.Component<

export interface TableSpecimenProps {
columns?: string[];
rows: { [key: string]: string | number }[];
rows: { [key: string]: React.ReactNode }[];
}
export class TableSpecimen extends React.Component<
SpecimenProps & TableSpecimenProps
Expand Down
2 changes: 1 addition & 1 deletion types/catalog/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ${(
${(
<TableSpecimen
span={3}
rows={[{ foo: 1, bar: "bar" }]}
rows={[{ foo: 1, bar: "bar", blah: <p>foo</p> }]}
columns={["bar", "foo"]}
/>
)}
Expand Down

0 comments on commit fec3a78

Please sign in to comment.