Arc.React.MVVM
    Preparing search index...

    Function params

    • Parameter decorator for injecting typed route params into a view model constructor. Wraps tsyringe's @inject(WellKnownBindings.params) and additionally stores the parameter's constructor type on the view model class as __routeParamsType so that withViewModel can deserialize the string-based URL params into the correct types.

      Parameters

      • target: object

        The view model class constructor.

      • propertyKey: string | symbol | undefined

        The method name (undefined for constructor parameters).

      • parameterIndex: number

        The zero-based index of the parameter in the constructor.

      Returns void