/** * Augmented by the slim bundle entry point to mark tree-shakeable extensions * as optional. Empty by default (full bundle), meaning extensions are guaranteed. */ // oxlint-disable-next-line typescript/no-empty-object-type export interface TreeShakeableConfig {} /** * For the full bundle (default), resolves to T (extensions guaranteed present). * For the slim bundle (augmented with { optional: true }), resolves to T | undefined. */ export type TreeShakeable = 'optional' extends keyof TreeShakeableConfig ? T | undefined : T