{"id":256,"date":"2016-03-25T18:00:00","date_gmt":"2016-03-25T09:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/03\/25\/static-type-check-with-flow-type"},"modified":"2016-03-25T18:00:00","modified_gmt":"2016-03-25T09:00:00","slug":"static-type-check-with-flow-type","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/03\/25\/static-type-check-with-flow-type\/","title":{"rendered":"Flowtype\u306b\u5165\u9580\u3057\u3066JavaScript\u30b3\u30fc\u30c9\u3067\u9759\u7684\u578b\u4ed8\u3051\u306e\u6069\u6075\u3092\u3046\u3051\u308b\u3068\u3053\u308d\u307e\u3067"},"content":{"rendered":"

\u30cf\u30a6\u30b9\u30fb\u30aa\u30d6\u30fb\u30ab\u30fc\u30c9<\/a>\u3067\u5bdd\u4e0d\u8db3\u306e\u5c0f\u98fc\u3067\u3059\u3002
\n\u3069\u3046\u306a\u308b\u3093\u3067\u3059\u304b\u3001\u3042\u306e\u30a2\u30ec\u306f...<\/p>\n

\"\"<\/p>\n

\u3055\u3066\u3001\u6700\u8fd1\u500b\u4eba\u7684\u306bGolang<\/code>\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u305f\u308a\u3001Haskell<\/code>\u3092\u52c9\u5f37\u3057\u305f\u308a\u3057\u3066\u3044\u307e\u3059\u3002
\n\u3044\u305a\u308c\u3082
\u9759\u7684\u578b\u4ed8\u3051<\/a>\u306b\u3088\u308a\u3001\u5b9f\u884c\u524d\u306b\u578b\u30a8\u30e9\u30fc\u3092\u691c\u51fa\u53ef\u80fd\u306a\u8a00\u8a9e\u3067\u3059\u3002
\n\u79c1\u306f\u666e\u6bb5\u3001\u52d5\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3067\u3042\u308bJavaScript<\/code>\u3092\u4e3b\u306b\u66f8\u3044\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u521d\u3081\u3053\u305d\u30d3\u30eb\u30c9\u6642\u306e\u30a8\u30e9\u30fc\u306b\u30e4\u30ad\u30e2\u30ad\u3057\u305f\u308a\u3057\u307e\u3057\u305f\u304c\u3001\u6163\u308c\u3066\u304f\u308b\u3068\u975e\u5e38\u306b\u5feb\u9069\u306b\u611f\u3058\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n

\u5b9f\u884c\u6642\u306b\u691c\u51fa\u3055\u308c\u308b\u3064\u307e\u3089\u306a\u3044\u9593\u9055\u3044\u3084\u3001\u9593\u9055\u3063\u305f\u578b\u304c\u6e21\u3063\u3066\u304d\u305f\u6642\u306e\u9632\u5fa1\u30b3\u30fc\u30c9(if typeof variable !== 'string' console.warn('\u578b\u304c\u9055\u3046')<\/code>\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9)\u304c\u4e0d\u8981\u306b\u306a\u308b\u3053\u3068\u4ee5\u5916\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u56fa\u6709\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u578b\u3068\u3057\u3066\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3067\u3001\u4f55\u3092\u3059\u308b\u304b<\/code>\u3088\u308a\u3082\u4f55\u3067\u3042\u308b\u304b<\/code>\u306b\u6ce8\u76ee\u3057\u305f\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n

React.js<\/code>\u306b\u306fPropType<\/code>\u3068\u3044\u3046\u578b\u30b7\u30b9\u30c6\u30e0\u3092\u5302\u308f\u305b\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u884c\u6642\u306e\u578b\u30a8\u30e9\u30fc\u691c\u51fa\u3067\u3059\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u578b(\u306e\u3088\u3046\u306a\u3082\u306e)\u306f\u72ec\u81ea\u306e\u578b\u691c\u8a3c\u95a2\u6570\u3092\u7528\u610f\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u767b\u5834\u4eba\u7269\u3092\u5ba3\u8a00\u3059\u308b\u3088\u306a\u4f7f\u3044\u65b9\u306f\u96e3\u3057\u304f\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30e1\u30ea\u30c3\u30c8\u306f\u53d7\u3051\u306b\u304f\u3044\u5370\u8c61\u3067\u3059\u3002<\/p>\n

\u73fe\u5728JavaScript<\/code>\u754c\u9688\u3067\u9759\u7684\u578b\u4ed8\u3051\u3092\u5c0e\u5165\u3059\u308b\u3068\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e2\u3064\u306e\u30e9\u30a4\u30d6\u30e9\u30ea(\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30e9)\u304c\u30e1\u30b8\u30e3\u30fc\u306a\u9078\u629e\u80a2\u306a\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b
\n(elm<\/code>\u306b\u3082\u9759\u7684\u578b\u4ed8\u3051\u306f\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u30e1\u30b8\u30e3\u30fc\u306a\u9078\u629e\u80a2\u3068\u3057\u3066\u53d6\u308a\u5f97\u308b\u304b?\u3068\u3044\u3046\u3068...)<\/p>\n