PageSourceSearch

https://jeremy-ho.vercel.app/assets/js/4ab9c669.3e8061d3.js

js jeremy-ho.vercel.app collected 2026-10-03 07:09:47 UTC 15,804 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcode_fictionist=self.webpackChunkcode_fictionist||[]).push([[1505],{154:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>a,frontMatter:()=>c,metadata:()=>r,toc:()=>o});const r=JSON.parse('{"id":"languages/TypeScript/basic-type","title":"[TS] \u4e00\u822c\u578b\u5225","description":"TypeScript \u7684\u5b89\u88dd\u8207\u7de8\u8b6f","source":"@site/docs/languages/TypeScript/01-basic-type.mdx","sourceDirName":"languages/TypeScript","slug":"/languages/TypeScript/basic-type","permalink":"/docs/languages/TypeScript/basic-type","draft":false,"unlisted":false,"tags":[{"inline":true,"label":"typescript","permalink":"/docs/tags/typescript"}],"version":"current","lastUpdatedAt":1766374113000,"sidebarPosition":1,"frontMatter":{"title":"[TS] \u4e00\u822c\u578b\u5225","sidebar_label":"[TS] \u4e00\u822c\u578b\u5225","tags":["typescript"],"keywords":["typescript"]},"sidebar":"languages","previous":{"title":"TypeScript","permalink":"/docs/category/typescript"},"next":{"title":"[TS] \u7269\u4ef6\u3001\u9663\u5217\u3001\u51fd\u5f0f\u7684\u578b\u5225","permalink":"/docs/languages/TypeScript/object_array_function"}}');var i=s(74848),t=s(28453);const c={title:"[TS] \u4e00\u822c\u578b\u5225",sidebar_label:"[TS] \u4e00\u822c\u578b\u5225",tags:["typescript"],keywords:["typescript"]},l=void 0,d={},o=[{value:"TypeScript \u7684\u5b89\u88dd\u8207\u7de8\u8b6f",id:"typescript-\u7684\u5b89\u88dd\u8207\u7de8\u8b6f",level:2},{value:"\u81ea\u52d5\u7de8\u8b6f",id:"\u81ea\u52d5\u7de8\u8b6f",level:3},{value:"TypeScript \u7684\u57fa\u672c\u64cd\u4f5c",id:"typescript-\u7684\u57fa\u672c\u64cd\u4f5c",level:2},{value:"\u578b\u5225\u8a3b\u8a18",id:"\u578b\u5225\u8a3b\u8a18",level:3},{value:"\u578b\u5225\u63a8\u8ad6",id:"\u578b\u5225\u63a8\u8ad6",level:3},{value:"\u806f\u5408\u578b\u5225",id:"\u806f\u5408\u578b\u5225",level:3},{value:"\u578b\u5225\u65b7\u8a00",id:"\u578b\u5225\u65b7\u8a00",level:3},{value:"Reference",id:"reference",level:2}];function p(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",h2:"h2",h3:"h3",li:"li",ol:"ol",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"typescript-\u7684\u5b89\u88dd\u8207\u7de8\u8b6f",children:"TypeScript \u7684\u5b89\u88dd\u8207\u7de8\u8b6f"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsx)(n.li,{children:"\u5b89\u88dd TypeScript \u7de8\u8b6f\u5668\u3002"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"npm install -g typescript\n"})}),"\n",(0,i.jsxs)(n.ol,{start:"2",children:["\n",(0,i.jsx)(n.li,{children:"\u5efa\u7acb\u4e00\u500b ts \u6a94\u6848\uff0c\u5982\uff1ahello.ts\u3002"}),"\n",(0,i.jsx)(n.li,{children:"\u8f38\u5165\uff1a"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"function greet(person: string){\n  console.log(`Hello, ${person}`)\n}\n\ngreet('world')\n"})}),"\n",(0,i.jsxs)(n.ol,{start:"4",children:["\n",(0,i.jsxs)(n.li,{children:["\u6253\u958b\u7d42\u7aef\u6a5f\u8f38\u5165\uff1a",(0,i.jsx)(n.code,{children:"tsc hello.ts"}),"\u3002"]}),"\n",(0,i.jsx)(n.li,{children:"\u57f7\u884c\u7de8\u8b6f\u904e\u5f8c\u51fa\u73fe JavaScript \u6a94\u6848\u3002"}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"\u81ea\u52d5\u7de8\u8b6f",children:"\u81ea\u52d5\u7de8\u8b6f"}),"\n",(0,i.jsxs)(n.p,{children:["\u524d\u9762\u5df2\u7d93\u5148\u5168\u5c40\u5b89\u88dd\u904e TypeScript \u4e86\uff0c\u4e26\u4e14\u65b0\u589e\u4e86 hello.ts \u6a94\u6848\u4f86\u7df4\u7fd2 TS \u8a9e\u6cd5\u4e26\u900f\u904e ",(0,i.jsx)(n.code,{children:"tsc hello.js"})," \u4f86\u7de8\u8b6f TS \u6a94\u6848\u3002",(0,i.jsx)(n.br,{}),"\n","\u4f46\u5728\u5be6\u52d9\u4e0a\u901a\u5e38\u8981\u958b\u59cb\u5beb TS \u524d\u6703\u5148\u5728\u4e00\u500b ",(0,i.jsx)(n.code,{children:"tsconfig.json"})," \u7684\u6a94\u6848\u4e2d\u505a\u7de8\u8b6f\u8a2d\u5b9a\uff0c\u524d\u9762\u53ea\u662f\u70ba\u4e86\u5feb\u901f\u7df4\u7fd2 TS \u8a9e\u6cd5\u6240\u4ee5\u5148\u8df3\u904e\u9019\u90e8\u5206\u3002"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"tsc --init\n"})}),"\n",(0,i.jsxs)(n.p,{children:["\u57f7\u884c\u5b8c\u7562\uff0c",(0,i.jsx)(n.code,{children:"tsconfig.json"})," \u6703\u51fa\u73fe\u5728\u5c08\u6848\u8cc7\u6599\u4e2d\u3002"]}),"\n",(0,i.jsx)(n.p,{children:"\u6253\u958b\u8a2d\u5b9a\u6a94\uff0c\u5148\u628a\u90a3\u4e9b\u6797\u6797\u7e3d\u7e3d\u7684\u8a3b\u89e3\u62ff\u6389\uff0c\u6703\u770b\u5230 TS \u7684\u9810\u8a2d\u662f\u9019\u6a23\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-json",metastring:"title='tsconfig.json'",children:'{\n  "compilerOptions": {\n    "target": "es2016",\n    "module": "commonjs",\n    "esModuleInterop": true,\n    "forceConsistentCasingInFileNames": true,\n    "strict": true,\n    "skipLibCheck": true\n  }\n}\n'})}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"target"}),"\uff1a\u6307\u5b9a\u7de8\u8b6f\u751f\u6210\u7684 JavaScript \u7684\u7248\u672c\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"module"}),"\uff1a\u6307\u5b9a\u4e86\u751f\u6210\u6a21\u7d44\u7684\u683c\u5f0f\u3002CommonJS \u662f Node.js \u4e2d\u5e38\u898b\u7684\u6a21\u7d44\u7cfb\u7d71\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"esModuleInterop"}),"\uff1a\u5141\u8a31 TypeScript \u5c0d CommonJS \u6a21\u7d44\u9032\u884c\u66f4\u597d\u7684\u4ea4\u4e92\u64cd\u4f5c\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"forceConsistentCasingInFileNames"}),"\uff1aTypeScript \u5c07\u56b4\u683c\u6aa2\u67e5\u6587\u4ef6\u540d\u7684\u5927\u5c0f\u5beb\u4e00\u81f4\u6027\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"strict"}),"\uff1a\u555f\u7528\u6240\u6709\u7684\u56b4\u683c\u985e\u578b\u6aa2\u67e5\u9078\u9805"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"skipLibCheck"}
1),"\uff1a\u8df3\u904e\u5c0d\u5ba3\u544a\u6587\u4ef6 (\u7b2c\u4e09\u65b9\u5957\u4ef6) \u7684\u6aa2\u67e5\u3002"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"\u57fa\u672c\u4e0a\u53ea\u7528\u9810\u8a2d\u8a2d\u5b9a TS \u4e5f\u80fd\u52d5\uff0c\u4f46\u53ef\u4ee5\u5ba2\u88fd\u5316\u8b93 TS \u66f4\u65b9\u4fbf\uff0c\u800c\u90a3\u4e00\u5927\u5305\u8a3b\u89e3\u5c31\u662f TS \u5141\u8a31\u8abf\u6574\u7684\u8a2d\u5b9a\u5167\u5bb9\u3002"}),"\n",(0,i.jsxs)(n.p,{children:["\u6700\u5f8c\u8aaa\u4e00\u4e0b\u81ea\u52d5\u7de8\u8b6f\u3002\u7576\u6211\u5728\u5b78 TS \u6bcf\u6b21\u5728\u90a3\u908a ",(0,i.jsx)(n.code,{children:"tsc hello.ts"})," \u6642\u90fd\u5728\u60f3\uff0cSCSS \u6709\u81ea\u52d5\u6aa2\u6e2c\u7de8\u8b6f\u7684\u529f\u80fd\uff0cTS \u6709\u6c92\u6709\uff1f",(0,i.jsx)(n.br,{}),"\n","\u9084\u771f\u7684\u6709\uff0c\u5728\u7d42\u7aef\u6a5f\u8f38\u5165 ",(0,i.jsx)(n.code,{children:"tsc --watch"})," \u5c31\u53ef\u4ee5\u8b93 TS \u6bcf\u6b21\u5728\u5132\u5b58\u6a94\u6848\u6642\u5c31\u81ea\u52d5\u7de8\u8b6f\u3002\u800c\u50cf\u6211\u4e00\u6a23 VScode \u8a2d\u5b9a\u6bcf\u6b21\u8b8a\u52d5\u90fd\u81ea\u52d5\u5132\u5b58\u7684\u4eba\uff0c\u9019\u5c31\u7b49\u540c\u7121\u6642\u7121\u523b\u90fd\u5728\u81ea\u52d5\u7de8\u8b6f\u4e86\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"typescript-\u7684\u57fa\u672c\u64cd\u4f5c",children:"TypeScript \u7684\u57fa\u672c\u64cd\u4f5c"}),"\n",(0,i.jsx)(n.h3,{id:"\u578b\u5225\u8a3b\u8a18",children:"\u578b\u5225\u8a3b\u8a18"}),"\n",(0,i.jsxs)(n.p,{children:["TypeScript \u7684\u51fa\u73fe\u5c31\u662f\u70ba\u4e86\u89e3\u6c7a JavaScript \u578b\u5225\u7d44\u7e54\u9b06\u6563\u7684\u554f\u984c\u3002\u6240\u4ee5 TypeScript \u7684\u6838\u5fc3\u5c31\u662f\u8b93\u6211\u5011\u624b\u52d5\u70ba\u6211\u5011\u7684\u8b8a\u6578\u5011\u52a0\u4e0a\u578b\u5225\uff0c\u7136\u5f8c\u7531 TypeScript \u70ba\u6211\u5011\u505a\u578b\u5225\u7684\u628a\u95dc\uff0c\u907f\u514d\u56e0\u70ba\u578b\u5225\u800c\u51fa\u73fe\u4e00\u4e9b\u975e\u9810\u671f\u7684\u932f\u8aa4\u3002",(0,i.jsx)(n.br,{}),"\n","\u6bd4\u65b9\u8aaa\u4e0b\u9762\u9019\u500b\u5f88\u7d93\u5178\u7684\u7b97\u8853\u4f8b\u5b50\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",metastring:"title='JavaScript'",children:"const sum = (x, y) =>{\n  return x + y\n}\n\nconsole.log(sum(1, '1'))\n"})}),"\n",(0,i.jsxs)(n.p,{children:["\u9810\u671f\u53ea\u662f\u6578\u5b57\u76f8\u52a0\uff0c\u4f46\u5728\u7a0b\u5f0f\u78bc\u67d0\u8655\u7a81\u7136\u50b3\u5165\u4e00\u500b\u5b57\u4e32\uff0c\u5c31\u6703\u7522\u751f\u9019\u7a2e ",(0,i.jsx)(n.code,{children:"1 + '1' = 11"})," \u7684\u932f\u8aa4\u4e86\uff0c\u9019\u662f JavaScript \u578b\u5225\u8f49\u63db\u7684\u934b\u3002"]}),"\n",(0,i.jsx)(n.p,{children:"\u6539\u6210 TypeScript\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"const sum = (x: number, y: number): number =>{\n  return x + y\n}\n\nconsole.log(sum(1, '1'))\n"})}),"\n",(0,i.jsxs)(n.p,{children:["\u5728\u7de8\u8b6f\u6642 TypeScript \u5c31\u6703\u8df3\u51fa\u4f86\u8aaa\uff1a",(0,i.jsx)(n.code,{children:"Argument of type 'string' is not assignable to parameter of type 'number'."}),(0,i.jsx)(n.br,{}),"\n","\u4e0a\u8ff0\u7684\u4f8b\u5b50\u5c31\u662f\u70ba\u53c3\u6578\u548c\u51fd\u5f0f\u7684 ",(0,i.jsx)(n.code,{children:"return"})," \u505a\u4e86\u578b\u5225\u8a3b\u8a18\uff0cTypeScript \u5c31\u6703\u4f9d\u7167\u8a3b\u8a18\u53bb\u505a\u6aa2\u67e5\u3002"]}),"\n",(0,i.jsxs)(n.p,{children:["\u5c0d\u65bc JavaScript \u7684\u57fa\u790e\u578b\u5225\uff1a",(0,i.jsx)(n.code,{children:"boolean"}),"\u3001",(0,i.jsx)(n.code,{children:"number"}),"\u3001",(0,i.jsx)(n.code,{children:"string"}),"\u3001",(0,i.jsx)(n.code,{children:"null"}),"\u3001",(0,i.jsx)(n.code,{children:"undefined"}),"\u3001",(0,i.jsx)(n.code,{children:"symbol"}),"\uff0c\u901a\u901a\u53ef\u4ee5\u7528\u50cf\u4e0b\u9762\u9019\u500b\u4f8b\u5b50\u9019\u9ebc\u7c21\u55ae\u7684\u65b9\u5f0f\u505a\u578b\u5225\u8a3b\u8a18\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"let isDone: boolean = false\n"})}),"\n",(0,i.jsx)(n.admonition,{type:"danger",children:(0,i.jsxs)(n.p,{children:["TypeScript \u63d0\u4f9b\u4e00\u500b\u578b\u5225\u53eb\u505a ",(0,i.jsx)(n.code,{children:"any"}),"\uff0c\u4ee3\u8868\u4ec0\u9ebc\u578b\u5225\u90fd\u53ef\u4ee5\uff0c\u8acb\u76e1\u91cf\u4e0d\u8981\u4f7f\u7528\uff0c\u4e0d\u7136\u5c31\u55aa\u5931 TypeScript \u7684\u4f7f\u7528\u610f\u7fa9\u4e86\u3002"]})}),"\n",(0,i.jsx)(n.h3,{id:"\u578b\u5225\u63a8\u8ad6",children:"\u578b\u5225\u63a8\u8ad6"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"let myName = 'Jeremy'\n"})}),"\n",(0,i.jsx)(n.p,{children:"\u5982\u679c\u5728\u7b2c\u4e00\u6b21\u5ba3\u544a\u8b8a\u6578\u6642\u6709\u7d66\u4e88\u503c\uff0c\u5176\u5be6 TypeScript \u5c31\u96b1\u6027\u5730\u70ba\u9019\u500b\u8b8a\u6578\u52a0\u4e0a\u4e00\u500b\u578b\u5225\u4e86\u3002"}),"\n",(0,i.jsx)(n.h3,{id:"\u806f\u5408\u578b\u5225",children:"\u806f\u5408\u578b\u5225"}),"\n",(0,i.jsx)(n.p,{children:"\u806f\u5408\u578b\u5225\u5c31\u662f\u8b93\u6211\u5011\u7684\u8b8a\u6578\u53ef\u4ee5\u5132\u5b58\u591a\u7a2e\u578b\u5225\u4e2d\u7684\u4e00\u7a2e\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"let num: number | string \nnum = 9\nnum = 'nine'\n"})}),"\n",(0,i.jsxs)(n.admonition,{type:"warning",children:[(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"TypeScript \u53ea\u80fd\u5b58\u53d6\u806f\u5408\u578b\u5225\u4e2d\u5404\u578b\u5225\u5171\u6709\u7684\u65b9\u6cd5\u3002"}),"\n"]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"const getLength = (x: string | number):number =>{\n  return x.length\n}\n"})}),(0,i.jsxs)(n.p,{children:["TypeScript \u4e1f\u4e86\u4e00\u500b\u932f\u8aa4\uff1a",(0,i.jsx)(n.code,{children:"Property 'length' does not exist on type 'string | number'."}),(0,i.jsx)(n.br,{}),"\n","\u90a3\u662f\u56e0\u70ba ",(0,i.jsx)(n.code,{children:"length"}
1)," \u4e0d\u662f ",(0,i.jsx)(n.code,{children:"number"})," prototype \u4e0b\u7684\u65b9\u6cd5\uff0c\u4f46\u5982\u679c\u662f\u50cf ",(0,i.jsx)(n.code,{children:"toString"})," \u9019\u7a2e\u5169\u8005\u90fd\u6709\u7684\u65b9\u6cd5\u5c31\u53ef\u4ee5\u7de8\u8b6f\u6210\u529f\u3002",(0,i.jsx)(n.br,{}),"\n","\u9019\u5728\u5be6\u52d9\u4e0a\u6709\u6642\u6eff\u8a0e\u53ad\u7684\uff0c\u4e00\u65b9\u9762\u96d6\u7136\u64f4\u5145\u4e86\u8b8a\u6578\u63a5\u53d7\u7684\u578b\u5225\uff0c\u4f46\u53e6\u4e00\u65b9\u9762\u537b\u53c8\u9650\u5236\u4e86\u6211\u5011\u80fd\u4f7f\u7528\u7684\u65b9\u6cd5\uff0c\u6703\u8b8a\u6210\u9700\u8981\u770b\u60c5\u6cc1\u4f86\u505a\u578b\u5225\u65b7\u8a00\u3002"]})]}),"\n",(0,i.jsx)(n.h3,{id:"\u578b\u5225\u65b7\u8a00",children:"\u578b\u5225\u65b7\u8a00"}),"\n",(0,i.jsx)(n.p,{children:"\u624b\u52d5\u6307\u5b9a\u4e00\u500b\u503c\u7684\u578b\u5225\uff0c\u767d\u8a71\u4e00\u9ede\u5c31\u662f\u70ba\u53c3\u6578\u6307\u5b9a\u5728\u4ec0\u9ebc\u578b\u5225\u4e0b\u8981\u5e79\u4ec0\u9ebc\u4e8b\u3002\u4ee5\u7528\u5728\u524d\u9762\u7684\u806f\u5408\u578b\u5225\u70ba\u4f8b\u3002"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",metastring:"title='wrong answer'",children:"const getLength = (x: string | number):number =>{\n  if(x.length){\n    return x.length\n  }else{\n    return x.toString().length\n  }\n}\n"})}),"\n",(0,i.jsx)(n.p,{children:"\u4f9d\u7167\u4e0a\u9762\u806f\u5408\u578b\u5225\u77e5\u9053\u7684\uff0c\u9019\u6771\u897f\u4e00\u5b9a\u6703\u5674\u932f\uff0c\u4f46\u5982\u679c\u52a0\u4e0a\u578b\u5225\u65b7\u8a00\u5c31\u4e0d\u4e00\u6a23\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",metastring:"title='right answer'",children:"const getLength = (x: string | number):number =>{\n  if((x as string).length){\n    return (x as string).length\n  }else{\n    return x.toString().length\n  }\n}\n"})}),"\n",(0,i.jsx)(n.admonition,{type:"warning",children:(0,i.jsxs)(n.p,{children:["\u9019\u88e1\u8981\u88dc\u5145\u8aaa\u660e\u4e00\u9ede\uff0cassertion \u6c92\u4e8b\u771f\u7684\u5c11\u7528\uff0c\u56e0\u70ba\u5b83\u7684\u884c\u70ba\u5176\u5be6\u8b1b\u767d\u8a71\u5c31\u662f\u6211\u5011\u76f4\u63a5\u8ddf TypeScript \u8aaa\uff1a",(0,i.jsx)(n.code,{children:"\u6211\u77e5\u9053\u9019\u500b\u6771\u897f\u662f\u4ec0\u9ebc\u578b\u5225\u7684\uff0c\u4f60\u4e0d\u7528\u7ba1\u4e86"}),"\uff0c\u9019\u6a23 TypeScript \u5c31\u6703\u5ffd\u7565\u4e86\u5b83\u7684\u578b\u5225\u6aa2\u67e5\uff0c\u5176\u5be6\u5371\u96aa\u5ea6\u76f8\u7576\u65bc ",(0,i.jsx)(n.code,{children:"any"}),"\u3002",(0,i.jsx)(n.br,{}),"\n","\u90a3\u4ec0\u9ebc\u6642\u5019\u53ef\u4ee5\u7528\uff1f",(0,i.jsx)(n.br,{}),"\n","\u50cf\u4e0a\u9762\u958b\u5b97\u660e\u7fa9\u8aaa\u7684\uff0c\u7528\u5728\u6709\u806f\u5408\u578b\u5225\u6642\uff0c\u4f60\u5f88\u78ba\u5b9a\u4ec0\u9ebc\u6642\u5019\u8a72\u7528\u4ec0\u9ebc\u578b\u5225\u6642\uff0c\u9019\u6642\u5019\u5c31\u53ef\u4ee5\u7528 assertion \u4f86\u544a\u8a34 TypeScript\u3002"]})}),"\n",(0,i.jsx)(n.h2,{id:"reference",children:"Reference"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://willh.gitbook.io/typescript-tutorial/",children:"TypeScript \u65b0\u624b\u6307\u5357"})}),"\n",(0,i.jsx)(n.li,{children:"TypeScript \u9081\u5411\u5c08\u5bb6\u4e4b\u8def / Adam Freeman \u8457 / \u8a31\u6587\u9054 \u8b6f / \u65d7\u6a19\u51fa\u7248"}),"\n"]})]})}function a(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(p,{...e})}):p(e)}},28453:(e,n,s)=>{s.d(n,{R:()=>c,x:()=>l});var r=s(96540);const i={},t=r.createContext(i);function c(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.