Skip to content

Commit 95ef91c

Browse files
Manually correct ts-expect-error directives
1 parent aaf4ad5 commit 95ef91c

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

types/react/test/managedAttributes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ const weakComponentIndexedTest1: JSX.LibraryManagedAttributes<
265265
{ propTypes: typeof weakComponentPropTypes },
266266
IndexedComponentProps
267267
> = {};
268-
// @ts-expect-error
269268
const weakComponentIndexedTest2: JSX.LibraryManagedAttributes<
270269
{ propTypes: typeof weakComponentPropTypes },
271270
IndexedComponentProps
272-
> = { foo: "" };
271+
> // @ts-expect-error
272+
= { foo: "" };
273273
const weakComponentIndexedTest3: JSX.LibraryManagedAttributes<
274274
{ propTypes: typeof weakComponentPropTypes },
275275
WeakIndexedComponentProps

types/react/ts5.0/test/managedAttributes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ const weakComponentIndexedTest1: JSX.LibraryManagedAttributes<
265265
{ propTypes: typeof weakComponentPropTypes },
266266
IndexedComponentProps
267267
> = {};
268-
// @ts-expect-error
269268
const weakComponentIndexedTest2: JSX.LibraryManagedAttributes<
270269
{ propTypes: typeof weakComponentPropTypes },
271270
IndexedComponentProps
272-
> = { foo: "" };
271+
> // @ts-expect-error
272+
= { foo: "" };
273273
const weakComponentIndexedTest3: JSX.LibraryManagedAttributes<
274274
{ propTypes: typeof weakComponentPropTypes },
275275
WeakIndexedComponentProps

types/react/v16/test/managedAttributes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ const weakComponentIndexedTest1: JSX.LibraryManagedAttributes<
265265
{ propTypes: typeof weakComponentPropTypes },
266266
IndexedComponentProps
267267
> = {};
268-
// @ts-expect-error
269268
const weakComponentIndexedTest2: JSX.LibraryManagedAttributes<
270269
{ propTypes: typeof weakComponentPropTypes },
271270
IndexedComponentProps
272-
> = { foo: "" };
271+
> // @ts-expect-error
272+
= { foo: "" };
273273
const weakComponentIndexedTest3: JSX.LibraryManagedAttributes<
274274
{ propTypes: typeof weakComponentPropTypes },
275275
WeakIndexedComponentProps

0 commit comments

Comments
 (0)