0
私はいくつかのモジュールをインポートすると、Flow
を反応して学習していますが、フローはモジュールを見つけることができません。Flowを使って `import`モジュールをチェックする方法は?
import axios from "axios"; //requied module not found
export const fetchPopularRepos = (lang: string) => {
var encodedURI = window.encodeURI( // flow not covered
"https://api.github.com/search/repositories?q=stars:>1 + language:" +
lang +
"&sort=stars&order=desc&type=Repositories"
);
return axios.get(encodedURI).then(response => response.data.items);
};
//flow not covered
export function getProfile(username: string) {
return axios
.get(`https://api.github.com/users/${username}${params}`)
.then(user => user.data);
}
- は、どのように私は
window.encodeURI
とaxios