Just trying to configure SQL with the PostgreSQL dialect and hopefully getting autocomplete. I am getting a syntaxError: expected expression, got ‘:’. Obviously I am misreading the docs. Can someone explain what I am missing? Thanks.
import {basicSetup, EditorView} from "codemirror"
import {SQL, PostgreSQL} from "@codemirror/lang-sql"
let view = new EditorView({
doc: "// Type something here \n",
extensions: [
basicSetup, SQL(config?: SQLConfig = {dialect?: PostgreSQL}
)
],
parent: document.body
})