silverwolf-x's picture
download
raw
550 Bytes
import { BaseClass } from './base';
export class MyClass extends BaseClass {
static async foo() {
// super is allowed here
super.foo();
return fetch('https://example.com').then((res)=>res.json());
}
static async bar() {
if (Math.random() > 0.5) {
// super is not allowed here
return [
super.bar()
];
}
// arguments is not allowed here
console.log(arguments);
// this is not allowed here
return this.foo();
}
}

Xet Storage Details

Size:
550 Bytes
·
Xet hash:
5d77c9669dd0c876900232e08a5bf8f1648718a356fca02e7315423a85c544bb

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.