Deprecate a field of Schema in javascript

Hi,
How can i deprecate a field of schema in javascript. In colyseus doc only typescript format is given.

Hi Coco,

Thanks for your reply, actually i need information about @deprecated.

Live Version 1 :-

import { Schema, type, deprecated } from "@colyseus/schema";

class MyState extends Schema {
@type("string") myField: string;
}

LIVE VERSION 2 :-

import { Schema, type, deprecated } from "@colyseus/schema";

class MyState extends Schema {

// Flag field as deprecated.
@deprecated() @type("string") myField: string;

// To allow your server to play nicely with multiple client-side versions.
@type("string") newField: string;

}

How can achieve this in javascript.

This post is deleted!