Skip to content

Bug: type parameters does not work for table #597

@zoaha

Description

@zoaha

Describe the bug

https://surrealdb.com/docs/languages/javascript/api/values/table#1-use-type-parameters
Best practice example does not work.

Also referenced here:
https://surrealdb.com/docs/languages/javascript/api/values/table#2-define-interfaces-for-tables

Steps to reproduce

Typescript throws error when attempting to use type parameter

Image

Expected behaviour

typescript to not error

SurrealDB version

3.0.5 for windows on x86_64

JavaScript SDK version

2.0.3 (latest)

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct (repository /surrealdb.js)

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions