-
Notifications
You must be signed in to change notification settings - Fork 17
feat(dt-utils): refactor the dt-utils #105
New issue
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档里面 github icon 的链接能否设置为 dt-utils 的 github 链接
* generateUrlWithQuery('/api/data', { id: 123, name: null, status: undefined }) // => '/api/data?id=123' | ||
* ``` | ||
*/ | ||
const generateUrlWithQuery = (pathname: string, queryParams: QueryParams = {}): string => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buildQueryUrl
formatUrlWithParams
appendQueryToUrl
这几个命名如何
* getKey(5) // => "a4b2x" | ||
* ``` | ||
*/ | ||
const getKey = (size: number): string => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
会不会太简单了,太宽泛了。
generateUniqueId 这个如何?
* getTypeOfValue(new Set()); // => 'set' | ||
* ``` | ||
*/ | ||
const getTypeOfValue = (value: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
比 typeof 强点,要不直接叫 typeof吧
变更类型
请选择以下选项以描述 PR 的类型:
相关问题
变更内容
优化
新增
对应 Previewer
https://jin-sir.github.io/dt-utils/