Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
typescript add global variable to window
user19568
Programming language:
TypeScript
2021-03-10 20:37:05
0
Q:
typescript add global variable to window
Luiggi Mendoza
Code:
TypeScript
2021-09-21 00:05:04
declare global { interface Window { FB:any; } } let FB = window.FB; // ok now
1
Tags
variable
add
script
var
global
Related
typescript declare global
Failed to find 'typescript' module. Please check, NODE_PATH contains location of global 'typescript' or install locally in your project
how to declare variable in typescript
New to Communities?
Join the community