GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(types): don't use type from Vite 7.1 (#9071) · vitest-dev/vitest@6356b1d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/vitest/src/runtime/moduleRunner
    • moduleRunner.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/vitest/src/runtime/moduleRunner/moduleRunner.ts‎

Copy file name to clipboardExpand all lines: packages/vitest/src/runtime/moduleRunner/moduleRunner.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Traces } from '../../utils/traces'
1111
import { VitestMocker } from './moduleMocker'
1212
import { VitestTransport } from './moduleTransport'
1313

14-
export type CreateImportMeta = NonNullable<viteModuleRunner.ModuleRunnerOptions['createImportMeta']>
14+
export type CreateImportMeta = (modulePath: string) => viteModuleRunner.ModuleRunnerImportMeta | Promise<viteModuleRunner.ModuleRunnerImportMeta>
1515
export const createNodeImportMeta: CreateImportMeta = (modulePath: string) => {
1616
if (!viteModuleRunner.createDefaultImportMeta) {
1717
throw new Error(`createNodeImportMeta is not supported in this version of Vite.`)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.