Skip to content

feat: return a template literal for uuid action #945

Open
@sandros94

Description

This is just a small idea, feel free to close.

While working with node/web crypto I've noticed that randomUUID returns a template literal:

(alias) randomUUID(): `${string}-${string}-${string}-${string}-${string}`
import randomUUID
Available only in secure contexts.

Would it be possible to do the same for uuid action? Is it sufficient to change the TOutput of its BaseValidation?

> extends BaseValidation<TInput, TInput, UuidIssue<TInput>> {

Metadata

Assignees

Labels

enhancementNew feature or requestnext versionSomething to look at for our next major release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions