docs(declare): fixed wrong example

This commit is contained in:
ruanyf
2023-12-13 14:19:00 +08:00
parent eb048a3509
commit 838b2f69f4

View File

@@ -206,7 +206,7 @@ declare 关键字的另一个用途,是为外部模块添加属性和方法时
import { Foo as Bar } from 'moduleA';
declare module 'moduleA' {
interface Bar extends Foo {
interface Bar {
custom: {
prop1: string;
}