From d999ede7b59fa03bc3e7e679a0aeb54a2318d5f1 Mon Sep 17 00:00:00 2001 From: Erik Withak <36148136+WithakErik@users.noreply.github.com> Date: Sun, 28 May 2023 20:02:21 -0700 Subject: [PATCH] Update explicit-module-boundary-types.md Updates "Correct" version to match "Incorrect" version of empty function that expects nothing and returns a string (The "Correct" version was expecting a string and returning a concatenated string) --- .../eslint-plugin/docs/rules/explicit-module-boundary-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md b/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md index 2995d3b2c7ec..e48af85195d8 100644 --- a/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md +++ b/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md @@ -56,7 +56,7 @@ export var fn = function (): number { }; // A return value of type string -export var arrowFn = (arg: string): string => `test ${arg}`; +export var arrowFn = (): string => 'test'; // All arguments should be typed export var arrowFn = (arg: string): string => `test ${arg}`;