yunke-yunfly / fast-typescript-to-jsonschema

typescript-to-jsonschema generates JSON Schema files from your Typescript sources.
MIT License
33 stars 2 forks source link

增加Pick/Omit对type 联合类型的支持 #12

Closed HUxiaoAlinNG closed 2 years ago

HUxiaoAlinNG commented 2 years ago

1.泛型默认值,进行深度克隆,避免被串改 2.增加Pick/Omit对type 联合类型的支持 3.补充测试用例

codecov-commenter commented 2 years ago

Codecov Report

Merging #12 (46f2a9e) into master (c94dca2) will increase coverage by 0.39%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   94.77%   95.16%   +0.39%     
==========================================
  Files           3        3              
  Lines         765      765              
  Branches      275      277       +2     
==========================================
+ Hits          725      728       +3     
+ Misses         40       37       -3     
Impacted Files Coverage Δ
src/get-jsonschema-from-data.ts 96.32% <100.00%> (+0.84%) :arrow_up:
src/typescript-to-file-datas.ts 93.93% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more