Skip to content

SQLOperator type doesn't include <= (less than or equal) or >= (greater than or equal) #3411

Open
@matteason

Description

@matteason

Environment

  • Operating System: Windows_NT
  • Node Version: v22.12.0
  • Nuxt Version: 3.17.5
  • CLI Version: 3.25.1
  • Nitro Version: 2.11.12
  • Package Manager: npm@10.9.0
  • Builder: -
  • User Config: compatibilityDate, devtools, modules
  • Runtime Modules: @nuxt/content@3.6.0, @nuxt/eslint@1.4.1, @nuxt/fonts@0.11.4, @nuxt/image@1.10.0
  • Build Modules: -

Version

v3

Reproduction

N/A

Description

The SQLOperator type definition allows the following operators: '=' | '>' | '<' | '<>' | 'IN' | 'BETWEEN' | 'NOT BETWEEN' | 'IS NULL' | 'IS NOT NULL' | 'LIKE' | 'NOT LIKE'

<= and >= are missing from this list but they're supported in SQLite and widely used. They seem to work fine (tested in a queryCollection().where() call), they just cause a type checking error:

Error in IDE reads 'Vue: Argument of type <= is not assignable to parameter of type SQLOperator'

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions