• Applies a decorator manually.

    Parameters

    • decorator: ((...args: any[]) => any)

      The decorator function to be applied.

        • (...args): any
        • Parameters

          • Rest...args: any[]

          Returns any

    • target: any

      The target to which the decorator is applied (class, prototype, or constructor argument).

    • OptionalpropertyKey: string | number | symbol

      The property name or constructor argument index (optional).

    Returns void

    decorate(injectable("SomeDependency"), SomeDependency);
    
    decorate(inject("AnotherDependency"), SomeClass, "anotherDependency");
    
     decorate(inject("AnotherDependency"), SomeClass, 0);
    
    decorate(gamePhysicsSystem(), SomeSystem);
    
    decorate(gamePreRenderSystem(), SomeSystem);