Skip to content

Commit

Permalink
fix: match signature for nitro/nuxt useRuntimeConfigcomposables (#1230
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wattanx authored Jun 6, 2024
1 parent 569906c commit 85cf8fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bridge/src/runtime/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getCurrentInstance, reactive, onBeforeUnmount, watch, isRef } from 'vue
import type { Ref } from 'vue'
import type { CombinedVueInstance } from 'vue/types/vue'
import type { MetaInfo } from 'vue-meta'
import type { EventHandlerRequest, H3Event } from 'h3'
import { defu } from 'defu'

export interface Context {
Expand Down Expand Up @@ -132,7 +133,7 @@ export const useNuxtApp = (): NuxtAppCompat => {
}

// Runtime config helper
export const useRuntimeConfig = () => {
export const useRuntimeConfig = (_event?: H3Event<EventHandlerRequest>) => {
const nuxtApp = useNuxtApp()
if (nuxtApp._config) {
return nuxtApp._config as RuntimeConfig
Expand Down

0 comments on commit 85cf8fc

Please sign in to comment.