先日の続き。 TypeScriptには同名の宣言を統合してくれる機能がある interfaceやnamespaceなどは個別に書いても同名であれば1つにまとめられる declare module "<module name>" {}の中に書くことで、他のモジュールの型にメソッドやプロパティを独自に生やすことができる module augmentationと呼ばれる 参考資料# declaration merging