Skip to content

Commit 9a5f8cb

Browse files
authored
feat(dgeni): strip input signal factory from prop default (#4457)
1 parent 616baa0 commit 9a5f8cb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • tools/dgeni/src/transforms/daffodil-api-package/processors

tools/dgeni/src/transforms/daffodil-api-package/processors/role.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ export class RoleProcessor implements FilterableProcessor {
435435
if (prop.decorators?.find(({ name }) => name === 'Input') || prop.type.startsWith('InputSignal')) {
436436
doc.inputs.push({
437437
...prop,
438+
default: prop.default?.replace(/input(<.*>)?\((.*)\)/, '$2'),
438439
required: !prop.isOptional,
439440
});
440441
} else if (prop.decorators?.find(({ name }) => name === 'Output') || prop.type.startsWith('OutputEmitterRef')) {

0 commit comments

Comments
 (0)