typeRegistry inject