Skip to content

ImportOptionalPeerParams

Parameters for importOptionalPeer.

Import:

import type { ImportOptionalPeerParams } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-features';

Signature:

export interface ImportOptionalPeerParams

Properties

PropertyTypeDescription
featurestringThe option that needs the package, as the error message names it, e.g. framework: 'solid'.
packageNamestringThe package to install when it is missing.
projectFolder?stringThe folder whose node_modules the package is resolved from. Defaults to the project root.
specifier?stringThe module to import. Defaults to packageName.

Links to this page: