From 4759c7c19314ad6989655deaf3f343c1c41d76c7 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Wed, 3 Jul 2019 07:12:46 +0800 Subject: [PATCH] [doc] typo in Declaration Merging. PR1043 --- doc/handbook/Declaration Merging.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/handbook/Declaration Merging.md b/doc/handbook/Declaration Merging.md index 77ef5e3..27da54e 100644 --- a/doc/handbook/Declaration Merging.md +++ b/doc/handbook/Declaration Merging.md @@ -247,13 +247,13 @@ TypeScript并非允许所有的合并。 虽然JavaScript不支持合并,但你可以为导入的对象打补丁以更新它们。让我们考察一下这个玩具性的示例: -```js -// observable.js +```ts +// observable.ts export class Observable { // ... implementation left as an exercise for the reader ... } -// map.js +// map.ts import { Observable } from "./observable"; Observable.prototype.map = function (f) { // ... another exercise for the reader