From 55e9cc03bbcd5275478275352f0e7e5b75bff46c Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Thu, 20 Oct 2022 15:00:23 +0200 Subject: [PATCH] Update STYLE.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johan Haals Co-authored-by: Fredrik Adelöw Signed-off-by: Johan Haals --- STYLE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STYLE.md b/STYLE.md index 6f1f75f324..c352133c47 100644 --- a/STYLE.md +++ b/STYLE.md @@ -134,7 +134,7 @@ This section describes guidelines for designing public APIs. It can also be appl } ``` -1. Use options as arguments to functions and methods, rather than positional arguments. +1. When there is a significant number of arguments to a function or method, prefer to use a single options object as the argument, rather than many positional arguments. ```ts // Bad