Update with typescript syntax.