{"id":225400,"date":"2020-12-03T14:17:07","date_gmt":"2020-12-03T06:17:07","guid":{"rendered":"http:\/\/4563.org\/?p=225400"},"modified":"2020-12-03T14:17:07","modified_gmt":"2020-12-03T06:17:07","slug":"js-%e6%88%96%e8%80%85-ts-%e9%a1%b9%e7%9b%ae%e5%bd%93%e4%b8%ad%e6%98%af%e5%a6%82%e4%bd%95%e8%87%aa%e5%ae%9a%e4%b9%89%e6%96%87%e4%bb%b6%e6%89%a9%e5%b1%95%e5%90%8d%e7%9a%84%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=225400","title":{"rendered":"js \u6216\u8005 ts \u9879\u76ee\u5f53\u4e2d\u662f\u5982\u4f55\u81ea\u5b9a\u4e49\u6587\u4ef6\u6269\u5c55\u540d\u7684\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  js \u6216\u8005 ts \u9879\u76ee\u5f53\u4e2d\u662f\u5982\u4f55\u81ea\u5b9a\u4e49\u6587\u4ef6\u6269\u5c55\u540d\u7684\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mamahaha <\/span>  <span><i><\/i> 11<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6bd4\u5982\u50cf vue \u7684*.vue \u6587\u4ef6,quill \u7684*.styl \u6587\u4ef6\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4433244\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : VDimos <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5565\u610f\u601d\uff1f\u81ea\u5df1\u5b9a\u4e49\u4e00\u4e2a external.d.ts \uff0c\u628a\u8fd9\u4e9b\u6587\u4ef6\u540e\u7f00\u52a0\u8fdb\u53bb\u5c31\u884c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433245\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abelmakihara <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7c7b\u4f3c\u4e8e\u8fd9\u6837?<br \/>declare module &#8216;*.vue&#8217; {<br \/> import Vue from &#8216;vue&#8217;;<br \/> export default Vue;<br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433246\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mamahaha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u8fd9\u4e48\u7b80\u5355\u5427\uff0c\u641c\u4e86\u4e00\u4e0b \u81ea\u521b js \u53ef\u4ee5\u8bfb\u53d6\u7684\u6587\u4ef6\u7c7b\u578b \uff0c\u641c\u4e0d\u5230\u554a\uff0c\u4e0d\u77e5\u9053\u81ea\u521b\u6587\u4ef6\u7c7b\u578b\u6709\u5565\u597d\u5904\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433247\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u5165\u95e8\u7684\u4e00\u73af\uff0c\u5199\u4e2a webpack \u63d2\u4ef6\uff0c\u62e6\u622a\u4f60\u7684\u7279\u5b9a\u540e\u7f00\u540d\u5e76\u8fdb\u884c\u7f16\u8bd1\u3002\u7136\u540e\u5c31\u80fd\u8dd1\u4e86\u3002<br \/>\u5728\u4e4b\u540e\u5c31\u662f\u5199 ide \u63d2\u4ef6\u3001lint \u63d2\u4ef6\u3001\u5404\u79cd\u63d2\u4ef6\uff0c\u4ee5\u652f\u6301\u4ee3\u7801\u63d0\u793a\uff0c\u68c0\u67e5\uff0c\u9ad8\u4eae\u7b49\u529f\u80fd\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433248\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : joesonw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             2 \u662f\u6b63\u89e3, \u6ce8\u610f\u8981\u653e.d.ts \u6587\u4ef6\u91cc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433249\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mamahaha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @joesonw <br \/>@abelmakihara <br \/>\u8fd9\u4e2a\u6211\u641c\u5230\u4e86 https:\/\/segmentfault.com\/q\/1010000021967636?utm_source=tag-newest <br \/>\u8c8c\u4f3c\u662f\u8ba9 ts \u652f\u6301 vue \u683c\u5f0f\uff0c\u4e0d\u662f\u5b9a\u4e49 vue \u683c\u5f0f\uff0cvue2.x \u5c31\u6ca1\u6709 ts \u4f46\u662f\u4f1a\u6709*.vue \uff0c\u4e0d\u77e5\u9053\u5728\u54ea\u58f0\u660e\u7684*.vue \u7684\u6587\u4ef6\u7c7b\u578b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433250\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kasumi20 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             webpack loader \u4e86\u89e3\u4e00\u4e0b\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433251\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : joesonw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mamahaha ts \u91cc\u9762\u58f0\u660e\u53ea\u662f\u8ba9 import \u6b63\u786e\u800c\u5df2. \u53ef\u4ee5\u548c js \u4e00\u6837 require. \u5177\u4f53\u89e3\u6790\u8fd8\u662f\u8981\u770b\u6253\u5305\u5668\u5904\u7406, \u4f8b\u5982 webpack                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4433252\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mamahaha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @joesonw \u539f\u6765\u662f\u8fd9\u6837                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>js \u6216\u8005 ts \u9879\u76ee\u5f53\u4e2d\u662f\u5982\u4f55\u81ea&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225400"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=225400"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225400\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225400"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}