grant/ts2gas

Imports are not removed during transpilation.

Closed this issue · 1 comments

grant commented

The import statement is auto-created in IntelliJ but cannot be pushed to Apps Script. Comment these lines out.

import GmailMessage = GoogleAppsScript.Gmail.GmailMessage;

function getCurrentMessage():GmailMessage {
  return GmailApp.createDraft("", "", "").send()
}

getCurrentMessage();

Note: this will not prevent multi-line imports.

grant commented

Fixed in 8770b38