Skip to content

Constructor parameter decorators do not work in TypeScript due to invalid function type for "serializable" #159

@adamstoffel

Description

@adamstoffel

Attempting to use the @serializable decorator on a constructor parameter fails TS typechecking.
image

An additional type overload is necessary:

export function serializable(
    propSchema: PropSchema
): (target: Object, key: string, parameterIndex: number) => void;

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