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 'obsidian-dev-utils/script-utils/linters/over-exposure';

Signature:

function findOverExposure(params: FindOverExposureParams): OverExposureFinding[]

Parameters:

ParameterTypeDescription
paramsFindOverExposureParamsThe FindOverExposureParams.

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


Links to this page: