Angular Modernizer
    Preparing search index...

    Transform rule angular:static-class-to-functions: turns classes with only static members into module-level function and const exports and updates in-file and cross-file references.

    Runs only when the plugin config sets transformationType: 'static-class-to-functions'; skips .d.ts files and delegates to StaticClassTransformOrchestrator.

    // Before
    export class StringHelper {
    static isEmpty(s: string): boolean { return s.length === 0; }
    }

    // After
    export function isEmpty(s: string): boolean { return s.length === 0; }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "refactoring" = 'refactoring'

    Rule category for grouping.

    description: "Transforms static-only classes into module-level functions and const exports" = 'Transforms static-only classes into module-level functions and const exports'

    Rule description explaining what it does.

    id: "angular:static-class-to-functions" = 'angular:static-class-to-functions'

    Unique rule identifier (scoped to plugin).

    name: "Static Class to Functions Transform" = 'Static Class to Functions Transform'

    Human-readable rule name.

    tags: string[] = ...

    Tags for filtering and search.

    Methods