mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
86ade07de6
Adds support for `@Input` transform functions in isolated declarations mode (`emitDeclarationOnly: true`), allowing components and directives to specify `transform` functions without triggering fatal compiler errors. Synthesizes the `ngAcceptInputType_` write type syntactically: - For referenced functions (`transform: booleanAttribute`), emits `Parameters<typeof booleanAttribute>[0]`, relying on downstream template type checking to resolve the type. - For inline functions (`transform: (v: string) => boolean`), extracts `parameters[0].type` directly from the local TypeScript AST.