You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letBluethootDevice_create;classBluethootDevice{
#id!: string;static #allowConstruct=false;privateconstructor(){if(!BluethootDevice.#allowConstruct){thrownewError("You cannot instantiate this class directly");}}static{BluethootDevice_create=(id: string)=>{BluethootDevice.#allowConstruct=true;constdevice=newBluethootDevice();BluethootDevice.#allowConstruct=false;device.#id=id;returndevice;};}getid(){returnthis.#id;}}BluethootDevice_create("aa");
deno_lint marks BluethootDevice as unused and tells me to rename it to _BluethootDevice, but it's used by the BluethootDevice_create.
The text was updated successfully, but these errors were encountered:
deno_lint marks
BluethootDevice
as unused and tells me to rename it to_BluethootDevice
, but it's used by theBluethootDevice_create
.The text was updated successfully, but these errors were encountered: