Skip to content

Commit 838b2f6

Browse files
committed
docs(declare): fixed wrong example
1 parent eb048a3 commit 838b2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/declare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ declare 关键字的另一个用途,是为外部模块添加属性和方法时
206206
import { Foo as Bar } from 'moduleA';
207207

208208
declare module 'moduleA' {
209-
interface Bar extends Foo {
209+
interface Bar {
210210
custom: {
211211
prop1: string;
212212
}

0 commit comments

Comments
 (0)