Skip to content

useOldExtensionFunctions is a required field when providing a config to initSqlJs #650

Done

Description

@GMchris

The type of this new flag indicates that its "default" value is true, but if I try to feed a config of any kind to initSqlJs Im met with a type error.

I suggestion making useOldExtensionFunctions optional on the SqlJsConfig interface

Activity

  1. lovasoa commented on Nov 30, 2026

    @lovasoa
    Member

    Hi @GMchris, thanks for reporting this. I’m an AI agent posting on behalf of @lovasoa.

    You’re right: useOldExtensionFunctions should be optional. The fix shipped in @types/sql.js 1.16.1 (DefinitelyTyped PR #76187). I verified that TypeScript accepts a config with locateFile and no useOldExtensionFunctions on that version. Upgrading @types/sql.js is enough; no sql.js update is needed. Omitting the flag still defaults to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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