Skip to content

Commit e17e4e8

Browse files
committed
fix: export types
1 parent 47db262 commit e17e4e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test-pages-util/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import PermutationsView from "./permutations-view";
4+
import { PermutationsView, PermutationsViewProps } from "./permutations-view";
55
import { createPermutations, ComponentPermutations } from "./permutations";
66

7-
export { createPermutations, PermutationsView, ComponentPermutations };
7+
export { createPermutations, PermutationsView, ComponentPermutations, PermutationsViewProps };

src/test-pages-util/permutations-view.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import React from "react";
55

6-
interface PermutationsViewProps<T> {
6+
export interface PermutationsViewProps<T> {
77
permutations: ReadonlyArray<T>;
88
render: (props: T, index?: number) => React.ReactElement;
99
}
@@ -21,7 +21,7 @@ function formatValue(_key: string, value: any) {
2121

2222
const maximumPermutations = 276;
2323

24-
export default function PermutationsView<T>({ permutations, render }: PermutationsViewProps<T>) {
24+
export function PermutationsView<T>({ permutations, render }: PermutationsViewProps<T>) {
2525
if (permutations.length > maximumPermutations) {
2626
throw new Error(`Too many permutations (${permutations.length}), maximum is ${maximumPermutations}`);
2727
}

0 commit comments

Comments
 (0)