Add annotations for type/index.js