UNPKG

@kubb/core

Version:

Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.

9 lines (6 loc) 219 B
import type { KubbFile } from '@kubb/fabric-core/types' import { useApp } from '@kubb/react-fabric' export function useMode(): KubbFile.Mode { const { meta } = useApp<{ mode: KubbFile.Mode }>() return meta.mode }