UNPKG

@boost/config

Version:

Powerful convention based finder, loader, and manager of both configuration and ignore files.

8 lines (6 loc) 253 B
import { Path } from '@boost/common'; import { requireTSModule } from '@boost/module'; // eslint-disable-next-line @typescript-eslint/require-await export async function loadTs<T>(path: Path): Promise<T> { return requireTSModule(path).default as T; }