Skip to content

Commit 99c33d0

Browse files
committed
Clarify types
1 parent 1e2aac0 commit 99c33d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/example/exampleViewPosts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import styles from './example.module.scss';
22
import { ExamplePost } from './exampleType';
33
import PostSingle from './exampleViewPostSingle';
44

5-
const View = ({ data }) => {
5+
const View = ({ data }: { data: ExamplePost[] }) => {
66
const dataMapper = (post: ExamplePost) => <PostSingle key={post.id} post={post} />;
77

88
return <div className={styles.view}>{data.map(dataMapper)}</div>;

0 commit comments

Comments
 (0)