Skip to main content

Function: itemPathGetPart()

Given a DB path and a path component, this function returns the relevant portion of the path.

Param​

path

The full DB path.

Param​

part

The desired part to extract.

Call Signature​

itemPathGetPart<T>(path, part): T

Defined in: db/path.ts:42

Type Parameters​

Type Parameter
T extends string

Parameters​

ParameterType
pathstring
part"type" | "repo" | "item" | "embed"

Returns​

T

Call Signature​

itemPathGetPart<T>(path, part): undefined

Defined in: db/path.ts:47

Type Parameters​

Type Parameter
T extends string

Parameters​

ParameterType
pathundefined
part"type" | "repo" | "item" | "embed"

Returns​

undefined

Call Signature​

itemPathGetPart<T>(path, part): T

Defined in: db/path.ts:52

Type Parameters​

Type Parameter
T extends string

Parameters​

ParameterType
pathstring
part"type" | "repo" | "item" | "embed"

Returns​

T