function resolveSlug
resolveSlug(
kind: SlugKind,
userId: string,
slug: string
): string | undefined

Returns the id of userId's item of kind whose slug is or was slug, or undefined when none is.

Parameters

userId: string
slug: string

Return Type

string | undefined

Usage

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