# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 1
# self = https://watcher.sour.is/conv/qt6fd6q
TS 中的類型驗算- 高級通用 API 實現**
由於現在工作使用的技術棧是 React、TypeScript 和 ahooks,工作中需要用到大量的類型定義,特此記錄一下一些常用的類型通用 API 封裝。TS 內置類型PartialT:將 T 所有屬性變爲可選屬性 RequiredT:將 T 所有屬性變爲必選屬性 ReadonlyT:將 T 所有屬性變爲只讀屬性 NonNullableT:過濾 T 類型中的 null 及 un ⌘ Read more