mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-26 02:47:34 +00:00
11 lines
284 B
TypeScript
11 lines
284 B
TypeScript
import { getContext } from 'unctx'
|
|
import type { Nuxt } from './types/nuxt'
|
|
import type { NuxtConfig } from './types/config'
|
|
|
|
export const nuxtCtx = getContext<Nuxt>('nuxt')
|
|
export const useNuxt = nuxtCtx.use
|
|
|
|
export function defineNuxtConfig (config: NuxtConfig) {
|
|
return config
|
|
}
|