Type alias LastPath<TPath>

LastPath<TPath>: TPath extends `${string}.${infer Tail}`
    ? LastPath<Tail>
    : TPath

Returns the last segment of a dot-separated path.

Type Parameters

  • TPath extends string

    The type of the path.

Param: path

The dot-separated path.

Returns

  • The last segment of the path.

Generated using TypeDoc