Skip to content

tsc lib config to include MS DOM #14938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gforceg opened this issue Mar 30, 2017 · 2 comments
Closed

tsc lib config to include MS DOM #14938

gforceg opened this issue Mar 30, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@gforceg
Copy link

gforceg commented Mar 30, 2017

TypeScript Version: 2.1.5

I wish I could say something like this in my tsconfig.json:

"lib": [ "es2015", "dom", "dom.microsoft"],

and then I could compile my source without error when it looks like this:

let buffer = 'the buffer you wish to copy'
static POS = !!window.clipboardData

// if IE11, copy buffer to clipboard
if (POS) { window.clipboardData.setData('Text', buffer) }
// if other browser, copy buffer to clipboard
else { Clipboard._data = buffer; document.execCommand('copy')}
@NN---
Copy link

NN--- commented Apr 1, 2017

#13919

@aluanhaddad
Copy link
Contributor

Just declare the extras that you need.

@mhegazy mhegazy added the Duplicate An existing issue was already created label Apr 24, 2017
@mhegazy mhegazy closed this as completed Apr 24, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants