Skip to content

resolvePathFromRoot

Resolves a path relative to the root folder of the project.

Import:

import { resolvePathFromRoot } from '@mnaoumov/typescript-dev-toolkit/root';

Signature:

function resolvePathFromRoot(params: ResolvePathFromRootParams): string | null

Parameters:

Parameter Type Description
params ResolvePathFromRootParams The parameters for the function.

Returns: string | null — The resolved absolute path.


Links to this page: