Skip to content

findOverExposure

Finds over-exposed declarations in a project on disk. When FindOverExposureParams.shouldFix is set, each fixable finding is also tightened in place (rewriting the affected source files via typescript’s sys.writeFile).

Import:

import { findOverExposure } from '@mnaoumov/typescript-dev-toolkit/linters/over-exposure';

Signature:

function findOverExposure(params: FindOverExposureParams): OverExposureFinding[]

Parameters:

Parameter Type Description
params FindOverExposureParams The FindOverExposureParams.

Returns: OverExposureFinding[] — The over-exposed declarations.


Links to this page: