Skip to content

generateUUID

函数描述

生成唯一的UUID

基础用法

ts

import { generateUUID } from '@zhonghe/utils'

const uuid = generateUUID();
console.log(uuid);

类型声明

ts
/**
 * @description 生成唯一的uuid
 * @returns uuid
 */
declare function generateUUID(): string;