Closure Library declaration files for TypeScript.
Generated by clutz.
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!';
}
}
- See errors.txt
- Worker related files (ex.
goog.messaging.*
) are removed because TypeScript cannot support both DOM and Worker.
MIT License: Teppei Sato teppeis@gmail.com