I found out that this is the expected behavior as type definitions are not emitted with the upgdrade of ng-packagr. If we want to emit type description. To emit the .d.ts we can use the assets option, or alternatively change the file to a .ts extensions.
we can add below section on ng-package.json file.
{
"ngPackage": {
"assets": [
"CHANGELOG.md",
"./typedefs/**/*.d.ts"
],
"lib": {
...
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…