diff --git a/uuid/deno.json b/uuid/deno.json index d9fe9a857..c8cd96978 100644 --- a/uuid/deno.json +++ b/uuid/deno.json @@ -1,6 +1,6 @@ { "name": "@std/uuid", - "version": "0.224.3", + "version": "1.0.0-rc.1", "exports": { ".": "./mod.ts", "./common": "./common.ts", diff --git a/uuid/mod.ts b/uuid/mod.ts index d91fceb86..84c61db47 100644 --- a/uuid/mod.ts +++ b/uuid/mod.ts @@ -44,7 +44,7 @@ import { generate as generateV5, validate as validateV5 } from "./v5.ts"; * import { assert } from "@std/assert/assert"; * * const uuid = v1.generate(); - * assert(v1.validate(uuid)); + * assert(v1.validate(uuid as string)); * ``` */ export const v1 = { diff --git a/uuid/v1.ts b/uuid/v1.ts index bf4afe038..9fa698afa 100644 --- a/uuid/v1.ts +++ b/uuid/v1.ts @@ -93,7 +93,7 @@ export interface GenerateOptions { * }; * * const uuid = generate(options); - * assert(validate(uuid)); + * assert(validate(uuid as string)); * ``` */ export function generate(options: GenerateOptions = {}): string {