Skip to content

Instantly share code, notes, and snippets.

@hw0k
Created October 4, 2020 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hw0k/7de516dd48c9d6d97ef2f21c93cfe084 to your computer and use it in GitHub Desktop.
Save hw0k/7de516dd48c9d6d97ef2f21c93cfe084 to your computer and use it in GitHub Desktop.
TvI 3
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