biomejs / biome

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.

Home Page:https://biomejs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lint/correctness/noUndeclaredVariables should ignore TsGlobalDeclaration

ash0080 opened this issue · comments

Please update the playground link, it seems not illustrate the current issue.

Please update the playground link, it seems not illustrate the current issue.

It seems the playground server was experiencing an issue, but it appears to be accessible now.

I see the following code in the playground:

export default {
  flowProps: 'a'
} satisfies FlowConfig

I don't understand how this code is related to the current issue.

I see the following code in the playground:

export default {
  flowProps: 'a'
} satisfies FlowConfig

I don't understand how this code is related to the current issue.

check the main.ts

declare global {
    interface FlowConfig {
        flowProps: string
    }
}

In this case, where I have defined a global type instead of a global variable, the current implementation of Biome does not support this. The key difference from the previous issue (#1651) is that I am now working with a global type definition, rather than a global variable.

I can't replicate the issue in the playground.

@ash0080 sorry, the playground doesn't show the error.

Please create a repository at this point.