refactor: Use ESM (#8358)
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import autobind from 'autobind-decorator';
|
||||
import Connection from '.';
|
||||
|
||||
/**
|
||||
@@ -44,7 +43,6 @@ export default abstract class Channel {
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
@autobind
|
||||
public send(typeOrPayload: any, payload?: any) {
|
||||
const type = payload === undefined ? typeOrPayload.type : typeOrPayload;
|
||||
const body = payload === undefined ? typeOrPayload.body : payload;
|
||||
|
Reference in New Issue
Block a user