Skip to content

Commit d6869d6

Browse files
committed
Fix TS errors in the files which are now type checked
1 parent d02a03a commit d6869d6

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
TypeScript: Fix config to include all the TS files for type checking.

projects/js-packages/components/components/jetpack-footer/test/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { jest } from '@jest/globals';
22
import { render, screen } from '@testing-library/react';
3-
import userEvent from '@testing-library/user-event';
3+
import { userEvent } from '@testing-library/user-event';
44
import JetpackFooter from '../index.tsx';
55

66
describe( 'JetpackFooter', () => {

projects/js-packages/components/components/pricing-card/test/component.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/* eslint-disable testing-library/no-manual-cleanup */
55

66
import { jest } from '@jest/globals';
7+
// @ts-expect-error /pure subpath apparently exists
78
import { render, screen, cleanup } from '@testing-library/react/pure';
89
import PricingCard from '../index.tsx';
910

projects/js-packages/components/components/radio-control/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import clsx from 'clsx';
33
import styles from './styles.module.scss';
44
import type { FC, ReactNode } from 'react';
55

6-
interface RadioControlProps {
6+
export interface RadioControlProps {
77
/** The current value. */
88
selected: string;
99

projects/js-packages/components/components/status/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Text from '../text/index.tsx';
44
import styles from './style.module.scss';
55
import type { JSX } from 'react';
66

7-
interface StatusProps {
7+
export interface StatusProps {
88
status?: 'active' | 'error' | 'inactive' | 'action' | 'initializing';
99
label?: string;
1010
className?: string;

projects/js-packages/components/components/testimonials/test/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render, screen } from '@testing-library/react';
2-
import userEvent from '@testing-library/user-event';
2+
import { userEvent } from '@testing-library/user-event';
33
import Testimonials from '../index.tsx';
44
import { Testimonial } from '../testimonial.tsx';
55

projects/js-packages/components/components/toggle-control/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback } from 'react';
44
import styles from './styles.module.scss';
55
import type { FC, ReactNode } from 'react';
66

7-
interface ToggleControlProps {
7+
export interface ToggleControlProps {
88
/** Whether or not the toggle is currently enabled. */
99
checked?: boolean;
1010

0 commit comments

Comments
 (0)