UNPKG
always-helper
Version:
latest (0.0.11)
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
前端项目开发中,经常会用到一些工具函数的合集。
github.com/Rabbitzzc/always
Rabbitzzc/always
always-helper
/
types
/
random
/
randomString.d.ts
10 lines
(9 loc)
•
257 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** * 随机字符串 * 应用场景:有时候为了 mock 字符串名称,然后随机验证的业务会用到 */
declare
const
randomString
:
(
options
?:
number
| { length?:
number
; charset?:
string
; }
) =>
string
;
export
default
randomString;