Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TS2339 error #1360

Open
Open
Labels
Domain: Type CheckingRelated to type checking, grammar checking
@tmm1

Description

@tmm1

https://github.com/tmm1/tsgo-vitest-repro

tsgo --noEmit -p .sample.test.ts:39:26 - error TS2339: Property 'tools' does not exist on type '{ name: string; mode: string; } | { name: string; mode: string; tools: boolean; }'.39     async ({ name, mode, tools = true }) => {                            ~~~~~Found 1 error in sample.test.ts:39
import{describe,expect,it}from"vitest";describe("A test",()=>{constlist=["a","b","c","d","e","f",];it.each([{name:"foo",mode:"bar",},    ...list.flatMap((name)=>[{        name,mode:"bar",},{        name,mode:"baz",},{        name,mode:"qux",tools:false,},{        name,mode:"foo",},]),])("Test Case #%#: %s",async({ name, mode, tools=true})=>{console.log(name,mode,tools);},);})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: Type CheckingRelated to type checking, grammar checking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp