change `deps` to type. add docs