TypeScript is a
superset of JavaScript, which means anything that's valid JavaScript, is valid TypeScript. In that sense, the Firebase JavaScript client library works just fine with TypeScript without needing to do anything special.
The main advantage of TypeScript is that it brings
strong typing to JavaScript. Type information can even be added to third party libraries without having to modify the original source code by using
type definition files. By adding type definitions, your developer tools (code editor, IDE, compiler, etc) can flag errors that would have been missed had the type definition not been there.
So, in summary, Firebase works just fine with TypeScript, and if you want you can optionally take advantage of stronger type definitions using the
firebase.d.ts file that Tom already linked to (which comes from
DefinitelyTyped; a large repository of TypeScript definitions that people have made for most popular JavaScript libraries).
Hope that helps!
--Erik