Skip to content

Commit 0189887

Browse files
committed
feat: Create TestCaseComponentProps type
1 parent 3349566 commit 0189887

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/cursorless-org/src/pages/component-sheet.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,15 @@ export async function getStaticProps() {
8383
return { props: { data, bodyClasses: cheatsheetBodyClasses } };
8484
}
8585

86-
export function App({ data }: { data: TestCaseFixture[] }) {
86+
export type TestCaseComponentProps = TestCaseFixture & {
87+
filename: string;
88+
raw: TestCaseFixture;
89+
before: string;
90+
during: string;
91+
after: string;
92+
};
93+
94+
export function App({ data }: { data: TestCaseComponentProps[] }) {
8795
return (
8896
<>
8997
<Head>

0 commit comments

Comments
 (0)