# TypeScript 新手指南

## TypeScript 新手指南

- [前言](https://willh.gitbook.io/typescript-tutorial/readme.md)
- [簡介](https://willh.gitbook.io/typescript-tutorial/introduction.md)
- [什麼是 TypeScript](https://willh.gitbook.io/typescript-tutorial/introduction/what-is-typescript.md)
- [安裝 TypeScript](https://willh.gitbook.io/typescript-tutorial/introduction/get-typescript.md)
- [Hello TypeScript](https://willh.gitbook.io/typescript-tutorial/introduction/hello-typescript.md)
- [基礎](https://willh.gitbook.io/typescript-tutorial/basics.md)
- [原始資料型別](https://willh.gitbook.io/typescript-tutorial/basics/primitive-data-types.md)
- [任意值](https://willh.gitbook.io/typescript-tutorial/basics/any.md)
- [型別推論](https://willh.gitbook.io/typescript-tutorial/basics/type-inference.md)
- [聯合型別](https://willh.gitbook.io/typescript-tutorial/basics/union-types.md)
- [物件的型別——介面](https://willh.gitbook.io/typescript-tutorial/basics/type-of-object-interfaces.md)
- [陣列的型別](https://willh.gitbook.io/typescript-tutorial/basics/type-of-array.md)
- [函式的型別](https://willh.gitbook.io/typescript-tutorial/basics/type-of-function.md)
- [型別斷言](https://willh.gitbook.io/typescript-tutorial/basics/type-assertion.md)
- [宣告檔案](https://willh.gitbook.io/typescript-tutorial/basics/declaration-files.md)
- [內建物件](https://willh.gitbook.io/typescript-tutorial/basics/built-in-objects.md)
- [進階](https://willh.gitbook.io/typescript-tutorial/advanced.md)
- [型別別名](https://willh.gitbook.io/typescript-tutorial/advanced/type-aliases.md)
- [字串字面量型別](https://willh.gitbook.io/typescript-tutorial/advanced/string-literal-types.md)
- [元組](https://willh.gitbook.io/typescript-tutorial/advanced/tuple.md)
- [列舉](https://willh.gitbook.io/typescript-tutorial/advanced/enum.md)
- [類別](https://willh.gitbook.io/typescript-tutorial/advanced/class.md)
- [類別與介面](https://willh.gitbook.io/typescript-tutorial/advanced/class-and-interfaces.md)
- [泛型](https://willh.gitbook.io/typescript-tutorial/advanced/generics.md)
- [宣告合併](https://willh.gitbook.io/typescript-tutorial/advanced/declaration-merging.md)
- [延伸閱讀](https://willh.gitbook.io/typescript-tutorial/advanced/further-reading.md)
- [工程](https://willh.gitbook.io/typescript-tutorial/engineering.md)
- [程式碼檢查](https://willh.gitbook.io/typescript-tutorial/engineering/lint.md)
- [感謝](https://willh.gitbook.io/typescript-tutorial/thanks.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://willh.gitbook.io/typescript-tutorial/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
