Mascara includes some useful interface-definition files.
These files contains definitions of types which are available in the browser. By importing these definitions, you get compile-time verification.
browserapi - defines the main objects available in the browser: window, document and so on. Note: the declarations are just for proof-of-concept, and is not yet the full API as defined by WHATWG and W3C.
htmldom - The full W3C HTMLDOM
canvasapi - The WHATWG Canvas drawing API