function newSlug
newSlug(
kind: SlugKind,
userId: string,
title: string
): string

Returns a free slug for a new item of userId's titled title, for the dump and playlist services to insert it with, inside their transaction.

Parameters

userId: string
title: string

Return Type

string

Usage

import { newSlug } from "api/services/slug-service.ts";