added the "type" parameter to @resolve()