We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenshinKit v2 是用 TypeScript 基于 v1 的屎山代码重构的,虽然有了 types 支持,但是很多代码的逻辑因为技术债务事实上非常魔幻。
因此计划在近期进行一些逻辑重构和规范化。
本次更新将会是 major 更新,意味着大部分接口很可能不向前兼容。
getDS
@genshin-kit/dynamic-secret
util
utils
setCookie
getXxx
setXxx
getUserRoles
userRoles
#
_
The text was updated successfully, but these errors were encountered:
No branches or pull requests
GenshinKit v2 是用 TypeScript 基于 v1 的屎山代码重构的,虽然有了 types 支持,但是很多代码的逻辑因为技术债务事实上非常魔幻。
因此计划在近期进行一些逻辑重构和规范化。
本次更新将会是 major 更新,意味着大部分接口很可能不向前兼容。
拆分
getDS
拆分为独立包@genshin-kit/dynamic-secret
,版本号与米游社 App 同步(该包将作为官方 DS 生成器,这意味着将会支持用户自定义 DS 生成器以应对 mhy 突发更新)命名规范
util
→utils
)setCookie
等方法,这样校验数据更方便,逻辑也更清晰getXxx
setXxx
的命名方法,getUserRoles
→userRoles
(事实上 util.CharactersFilter 就遵守该命名规范)#
字面量重命名私有变量,规范原有的_
开头的变量与方法The text was updated successfully, but these errors were encountered: