The serializable attribute should be used to annotate all serialized fields / fields and members that should be serialized and exposed in an editor

  • Type Parameters

    • T

    Parameters

    • Optionaltype: null | Constructor<T> | TypeResolver<T> | (Constructor<any> | TypeResolver<T>)[]

      The type of the field. If not provided the type will be inferred from the constructor of the field. If the field is a primitive type (string, number, boolean) the type should be null.

    Returns (_target: any, _propertyKey: string | { name: string }) => void