Angular Modernizer
    Preparing search index...

    Transform rule angular:any-to-interface-transform: replaces any-typed parameters and class properties with generated interfaces, inferred from the property accesses on them.

    Runs only when the plugin config sets transformationType: 'any-to-interface'; skips .d.ts files and delegates to AnyToInterfaceOrchestrator.

    const rule = new AnyToInterfaceTransformRule();
    const context = ContextFactory.createTransformContext({ sourceFile, project, api });
    const result = await rule.transform(context);

    if (result.modified) {
    console.info('Generated interfaces for any-typed nodes');
    }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "modernization" = 'modernization'

    Rule category for grouping.

    description: "Replaces any-typed parameters and properties with generated interfaces" = 'Replaces any-typed parameters and properties with generated interfaces'

    Rule description explaining what it does.

    id: "angular:any-to-interface-transform" = 'angular:any-to-interface-transform'

    Unique rule identifier (scoped to plugin).

    name: "Any to Interface Transform" = 'Any to Interface Transform'

    Human-readable rule name.

    tags: string[] = ...

    Tags for filtering and search.

    Methods