Move typescript hook into core set of hooks, pass settings down to hooks