google-closure-library-types
v0.1.17
Published
TypeScript type definition (d.ts) for Google Closure Library
Downloads
878
Maintainers
Readme
closure-library.d.ts
Closure Library declaration files for TypeScript.
Generated by clutz.
Usage
npm i -D closure-library.d.ts
and edit tsconfig.json
like:
"baseUrl": "./",
"paths": {
"goog:*": ["./node_modules/closure-library.d.ts/index.d.ts"]
},
then
import Component from 'goog:goog.ui.Component';
class MyComponent extends Component {
hello(): string {
return 'Hello!';
}
}
Known errors
- See errors.txt
Restrictions
- Worker related files (ex.
goog.messaging.*
) are removed because TypeScript cannot support both DOM and Worker.
License
MIT License: Teppei Sato [email protected]