Skip to content

Commit

Permalink
fix: allow any environment in isRunnableDevEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Sep 26, 2024
1 parent 13546d5 commit dd6e3d5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { DevEnvironmentContext } from '../environment'
import { DevEnvironment } from '../environment'
import { createServerModuleRunner } from '../../ssr/runtime/serverModuleRunner'
import { createServerHotChannel } from '../hmr'
import type { Environment } from '../../environment'

export function createRunnableDevEnvironment(
name: string,
Expand All @@ -22,7 +23,7 @@ export interface RunnableDevEnvironmentContext extends DevEnvironmentContext {
}

export function isRunnableDevEnvironment(
environment: DevEnvironment,
environment: Environment,
): environment is RunnableDevEnvironment {
return environment instanceof RunnableDevEnvironment
}
Expand Down

0 comments on commit dd6e3d5

Please sign in to comment.