Skip to content

[TS] Support default values for strings #8888

@abhay-agarwal

Description

@abhay-agarwal

Typescript doesn't use a special flatbuffers string type as far as I can tell, so in the deserialization code for a table, it seems trivial to return a default string if provided instead of null. This would allow for string and vector defaults in the generated code.

We use flatbuffers across Rust, Swift, and Typescript. The lack of support for this in TS is the only issue blocking adoption of default string values for us.

Let me know if interested in having a PR submitted for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr-requestedA Pull Request is requested to move the issue forward.typescript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions