Identifiable

db · /index·type

Marks an entity as having a URL-safe handle slug. Types that satisfy this contract can be passed to slug-based lookup and routing utilities.

Properties

handle
string

Example

import type { Identifiable } from '@nordcom/commerce-db';
function slugPath(entity: Identifiable): string {
    return `/${entity.handle}/`;
}

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

Sourceindex.ts:42Edit the JSDoc directly
Metadata@nordcom/commerce-db@0.1.0Open in GitHub ↗

On this page