superstar-checkin icon indicating copy to clipboard operation
superstar-checkin copied to clipboard

实例化配置文件的时候应该做检查

Open Zxilly opened this issue 2 years ago • 1 comments

https://github.com/Clansty/superstar-checkin/blob/338e32fc5f91c33c00a26fc21e87d609c1639c11/providers/config.ts#L19 直接as过来会导致不可预料的运行时错误

Zxilly avatar May 07 '22 05:05 Zxilly

就 我预期中配置文件都是正确的,没有考虑过会有错误的配置文件。如果配置文件错误的话,用户应该也能发现

clansty avatar May 17 '22 06:05 clansty