TargetName
TargetName =
KnownTarget|CustomTarget
Defined in: core/src/types/config.ts:890
Supported output targets.
Includes all known built-in targets plus custom targets registered via registerFormatter.
- Use
KnownTargetwhen you need exhaustiveness checks in switch/if-else. - Use
TargetNamewhen you need to accept both known and custom targets. - Use
isKnownTarget()to narrow aTargetNametoKnownTargetat runtime. - Use
customTarget()to create aCustomTargetfrom a plain string.