ImportOptionalPeerParams
Parameters for importOptionalPeer.
Import:
import type { ImportOptionalPeerParams } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-features';Signature:
export interface ImportOptionalPeerParamsProperties
| Property | Type | Description |
|---|---|---|
| feature | string | The option that needs the package, as the error message names it, e.g. framework: 'solid'. |
| packageName | string | The package to install when it is missing. |
| projectFolder? | string | The folder whose node_modules the package is resolved from. Defaults to the project root. |
| specifier? | string | The module to import. Defaults to packageName. |
Links to this page: