Skip to content

Bug: letify flags different streams as duplicates due to $any() #3

@donesait

Description

@donesait

Proposed Solutions

  1. Smart $any parsing (parse obj.prop chains)
  2. CLI flag: --ignore-different-any-streams
  3. Config: ignorePatterns: ['$any.*.differentProp$']

Minimal Repro

// tsconfig.json
{ "angularCompilerOptions": { "strictTemplates": true } }

@Input() vm!: { stateA$: Observable<string>; stateB$: Observable<string> };
@let a = $any(vm.stateA$) | async;  // letify: ❌ duplicate!
@let b = $any(vm.stateB$) | async;

Question: Can we get property-aware $any() tracking? Affects 100+ components.

PRs welcome! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions