Skip to content

[JavaScript] JavaScript should support polymorphism #813

@theweipeng

Description

@theweipeng

Is your feature request related to a problem? Please describe.

Polymorphism is supported by the typeof Any in Python. JavaScript should also support it, otherwise, some types would fail to deserialize, such as [123, "123"].

Describe the solution you'd like

Add a tool function called Type.any, which would use the anySerializer during compile time.

Metadata

Metadata

Assignees

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