From 0ac1e133eed1452ce70ac0627ec9b8ff6f186a5a Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Mon, 16 May 2022 09:58:35 +0200 Subject: [PATCH] feat(eslint-plugin): fixed typo in docs for prefer-nullish-coalescing rule --- packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md b/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md index 33bdf03441d..422e80fd243 100644 --- a/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +++ b/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md @@ -74,7 +74,7 @@ foo === undefined || foo === null ? 'a string' : foo; foo == undefined ? 'a string' : foo; foo == null ? 'a string' : foo; -const foo: ?string = 'bar'; +const foo: string | undefined = 'bar'; foo !== undefined ? foo : 'a string'; foo === undefined ? 'a string' : foo;