From 2c46d5a72a95f133b341ff3bc6d91bf06e159f8d Mon Sep 17 00:00:00 2001 From: alex12306 Date: Tue, 29 Aug 2023 13:27:55 +0800 Subject: [PATCH] =?UTF-8?q?docs(interface):=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/interface.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interface.md b/docs/interface.md index 223d143..b6dd5bc 100644 --- a/docs/interface.md +++ b/docs/interface.md @@ -113,7 +113,7 @@ const obj:A = ['a', 'b', 'c']; 同样的,一个接口中最多只能定义一个数值索引。数值索引会约束所有名称为数值的属性。 -如果一个 interface 同时定义了字符串索引和数值索引,那么数值索性必须服从于字符串索引。因为在 JavaScript 中,数值属性名最终是自动转换成字符串属性名。 +如果一个 interface 同时定义了字符串索引和数值索引,那么数值索引必须服从于字符串索引。因为在 JavaScript 中,数值属性名最终是自动转换成字符串属性名。 ```typescript interface A {