Created
December 14, 2018 07:01
-
-
Save steelydylan/fc0599bade91d90a02b02819dc19600e to your computer and use it in GitHub Desktop.
もともとglobalに出ているjsライブラリをTypeScriptで定義しておく方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { XmlData } from './type'; | |
declare global { | |
namespace JKL { | |
class ParseXML { | |
constructor(path: string) | |
parse(): XmlData | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new JKL.ParseXml()が使える