Angular Modernizer
    Preparing search index...

    Transform rule angular:type-safety-transform: adds missing type annotations to parameters, return types and class properties; implicit any becomes unknown.

    Runs only when the plugin config sets transformationType: 'type-safety'; skips .d.ts files and delegates to TypeSafetyTransformOrchestrator. Nodes that already have a type annotation are left unchanged, so repeated runs are no-ops.

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

    if (result.modified) {
    console.info('Added missing type annotations');
    console.info(`Changes: ${result.changeCount}`);
    }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "modernization" = 'modernization'

    Rule category for grouping.

    description: "Adds missing type annotations to parameters, return types, and class properties" = 'Adds missing type annotations to parameters, return types, and class properties'

    Rule description explaining what it does.

    id: "angular:type-safety-transform" = 'angular:type-safety-transform'

    Unique rule identifier (scoped to plugin).

    name: "Type Safety Transform" = 'Type Safety Transform'

    Human-readable rule name.

    tags: string[] = ...

    Tags for filtering and search.

    Methods