From 50814915ef511c4f35c0b170bc020d5d8959ce5d Mon Sep 17 00:00:00 2001 From: Dongho Kim <70563791+mass2527@users.noreply.github.com> Date: Sun, 18 Aug 2024 22:51:39 +0900 Subject: [PATCH] docs(isArray): Update docs for `isArray` (#390) --- docs/ko/reference/compat/predicate/isArray.md | 6 +++--- docs/reference/compat/predicate/isArray.md | 6 +++--- docs/zh_hans/reference/compat/predicate/isArray.md | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/ko/reference/compat/predicate/isArray.md b/docs/ko/reference/compat/predicate/isArray.md index 17a3c6bf..1d7c834c 100644 --- a/docs/ko/reference/compat/predicate/isArray.md +++ b/docs/ko/reference/compat/predicate/isArray.md @@ -16,16 +16,16 @@ TypeScript의 타입 가드로 주로 사용되는데요, 파라미터로 주어 ## 인터페이스 ```typescript -function isArray(value: T): value is Extract; +function isArray(value?: unknown): value is any[]; ``` ### 파라미터 -- `value` (`T`): 배열인지 확인할 값. +- `value` (`unknown`): 배열인지 확인할 값. ### 반환 값 -(`value is Extract`): 값이 배열이면 `true`, 아니면 `false`. +(`value is any[]`): 값이 배열이면 `true`, 아니면 `false`. ## 예시 diff --git a/docs/reference/compat/predicate/isArray.md b/docs/reference/compat/predicate/isArray.md index a9c079d5..83bdce90 100644 --- a/docs/reference/compat/predicate/isArray.md +++ b/docs/reference/compat/predicate/isArray.md @@ -16,16 +16,16 @@ This function can also serve as a type predicate in TypeScript, narrowing the ty ## Signature ```typescript -function isArray(value: T): value is Extract; +function isArray(value?: unknown): value is any[]; ``` ### Parameters -- `value` (`T`): The value to test if it is an array. +- `value` (`unknown`): The value to test if it is an array. ### Returns -(`value is Extract`): `true` if the value is an array, `false` otherwise. +(`value is any[]`): `true` if the value is an array, `false` otherwise. ## Examples diff --git a/docs/zh_hans/reference/compat/predicate/isArray.md b/docs/zh_hans/reference/compat/predicate/isArray.md index ba74e4b6..2c45fe5e 100644 --- a/docs/zh_hans/reference/compat/predicate/isArray.md +++ b/docs/zh_hans/reference/compat/predicate/isArray.md @@ -18,16 +18,16 @@ ## 签名 ```typescript -function isArray(value: T): value is Extract; +function isArray(value?: unknown): value is any[]; ``` ### 参数 -- `value` (`T`): 检查是否为数组的值。 +- `value` (`unknown`): 检查是否为数组的值。 ### 返回值 -(`value is Extract`): 如果值为数组,则返回 `true`,否则返回 `false`。 +(`value is any[]`): 如果值为数组,则返回 `true`,否则返回 `false`。 ## 示例