typescript: use namespace for typescript types
Summary:
It's not clear to me why/whether you need to namespace-qualify
module augmentations like this, but in practice this fixed the
build for this code inside Google.
Reviewers: #core_team, shahms
Subscribers: shahms, #core_team
@@ -24,8 +24,8 @@ import * as utf8 from './utf8';
// Forward-declare a type found in TypeScript 2.4 to make this
// code work both in TS2.3 and TS2.4.
declare module 'typescript' {
- interface NamedDeclaration extends Declaration {
- name?: DeclarationName;
+ interface NamedDeclaration extends ts.Declaration {
+ name?: ts.DeclarationName;
}
}
