Skip to content

Support for CUID and NanoId #419

@jackgdll

Description

@jackgdll

Could support for CUIDs and NanoIds be added?
Can be used in the same way as uuid:

import { cuid, CUID, NanoId, nanoId, PrimaryKey } from '@deepkit/type';

class User {
    cuid: CUID & PrimaryKey = cuid();
	// Or the following
	// nanoId: NanoID & PrimaryKey = nanoId();
}

This would be nice to have to shorten ids.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions