fix(typescript): strip abstract keyword from properties in .d.ts

Fixes angular2/src/alt_router/metadata/metadata.d.ts

Closes #8339
This commit is contained in:
Alex Eagle 2016-04-29 10:08:56 -07:00 committed by Alex Eagle
parent f114d6c560
commit a84c2d7fee
1 changed files with 3 additions and 0 deletions

View File

@ -152,7 +152,10 @@ module.exports = function makeNodeTree(projects, destinationPath) {
compiledTree = replace(compiledTree, {
files: ['**/*.d.ts'],
patterns: [
// all readonly keywords
{match: /^(\s*(static\s+|private\s+)*)readonly\s+/mg, replacement: "$1"},
// abstract properties (but not methods or classes)
{match: /^(\s+)abstract\s+([^\(\n]*$)/mg, replacement: "$1$2"},
]
});