Skip to content

Commit

Permalink
Fix: Typescript thinks 舊選項參數 is required
Browse files Browse the repository at this point in the history
Now it's documented and annotated `undefined=` so that TS can
(hopefully) notify the user to update it.
  • Loading branch information
syimyuzya committed Aug 26, 2022
1 parent 81bb395 commit fe9b008
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
{comment}
* @param {{Qieyun.音韻地位}} 音韻地位 切韻音系音韻地位
* @param {{string=}} 字頭 字頭(可選)
* @param {{undefined=}} 舊選項參數 已棄用,請用 `<方案名>.方案(選項)(音韻地位, 字頭?)` 代替
* @return {{string}} 音韻地位對應的{title}
* @property {{推導方案<string>}} schema 推導方案,可用於指定推導選項、獲取方案詳細資訊等
*/
Expand Down

0 comments on commit fe9b008

Please sign in to comment.