Created
October 4, 2020 12:02
-
-
Save hw0k/7de516dd48c9d6d97ef2f21c93cfe084 to your computer and use it in GitHub Desktop.
TvI 3
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
interface Window { | |
title: string; | |
} | |
interface Window { | |
ts: import("typescript"); | |
} | |
declare function getWindow(): Window; | |
const window = getWindow(); | |
const src = 'const a = "Hello World"'; | |
window.ts.transpileModule(src, {}); // transpileModule() 메서드 사용 가능 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment