Skip to content

TypeScript: Unexpected satisfies #461

@timokoessler

Description

@timokoessler

Describe the bug
Syntax error: satisfies Test was unexpected Opengrep(syntax-error)

To Reproduce
Create a TypeScript file with the following content:

type Test = {
    a: string;
};

const test = { a: 1 } satisfies Test;

Expected behavior

Opengrep does not fail to parse the file.

Screenshots
/

What is the priority of the bug to you?

  • P0: blocking your adoption of Opengrep or workflow
  • P1: important to fix or quite annoying
  • P2: regular bug that should get fixed

Environment
Aikido VS Code extension, but also verified using latest Opengrep Windows binary (1.11.4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglangAdd or improve language support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions