From 53384ac4f7e1215f6c5061a6dd7a5ba0ffb9dc01 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:32:57 -0700 Subject: [PATCH] one last typo --- .../types/expect-error-range/expect-error-range-tests.ts.lint | 2 +- .../types/expect-error-range/expect-error-range-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin/test/__file_snapshots__/types/expect-error-range/expect-error-range-tests.ts.lint b/packages/eslint-plugin/test/__file_snapshots__/types/expect-error-range/expect-error-range-tests.ts.lint index fa666e0891..ab306d180d 100644 --- a/packages/eslint-plugin/test/__file_snapshots__/types/expect-error-range/expect-error-range-tests.ts.lint +++ b/packages/eslint-plugin/test/__file_snapshots__/types/expect-error-range/expect-error-range-tests.ts.lint @@ -18,7 +18,7 @@ Unused '@ts-expect-error' directive ==== types/expect-error-range/expect-error-range-tests.ts ==== // In TypeScript <5.5, elem will have type "string", - // but 5.5 it will be "string | number". + // but 5.5 it will be "string | undefined". const elem = ["value", undefined].filter(x => x != null)[0]; diff --git a/packages/eslint-plugin/test/fixtures/types/expect-error-range/expect-error-range-tests.ts b/packages/eslint-plugin/test/fixtures/types/expect-error-range/expect-error-range-tests.ts index ccee000edc..28f07a2d2c 100644 --- a/packages/eslint-plugin/test/fixtures/types/expect-error-range/expect-error-range-tests.ts +++ b/packages/eslint-plugin/test/fixtures/types/expect-error-range/expect-error-range-tests.ts @@ -1,5 +1,5 @@ // In TypeScript <5.5, elem will have type "string", -// but 5.5 it will be "string | number". +// but 5.5 it will be "string | undefined". const elem = ["value", undefined].filter(x => x != null)[0];