silverwolf-x's picture
download
raw
480 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() {
'use cache'
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:
480 Bytes
·
Xet hash:
22957be249efbb86c5c117130a568c9044c64728f3de763258243088f8f28556

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