godprotocol
Version:
A distributed computing environment
22 lines (16 loc) • 357 B
JavaScript
import Datatypes from "godprotocol/Objects/Datatypes";
class Func extends Datatypes{
constructor(payload, account){
super()
this.account = account
this.value = payload;
this.type = 'function'
}
literal = ()=>{
return `[${this.value.value || this.value.name}]`
}
sync = async()=>{
return this
}
}
export default Func