mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
chore: fix eslint in blocksuite (#9232)
This commit is contained in:
@@ -4,7 +4,7 @@ import { ClipboardEventState } from '../state/clipboard.js';
|
||||
import { EventScopeSourceType, EventSourceState } from '../state/source.js';
|
||||
|
||||
export class ClipboardControl {
|
||||
private _copy = (event: ClipboardEvent) => {
|
||||
private readonly _copy = (event: ClipboardEvent) => {
|
||||
const clipboardEventState = new ClipboardEventState({
|
||||
event,
|
||||
});
|
||||
@@ -14,7 +14,7 @@ export class ClipboardControl {
|
||||
);
|
||||
};
|
||||
|
||||
private _cut = (event: ClipboardEvent) => {
|
||||
private readonly _cut = (event: ClipboardEvent) => {
|
||||
const clipboardEventState = new ClipboardEventState({
|
||||
event,
|
||||
});
|
||||
@@ -24,7 +24,7 @@ export class ClipboardControl {
|
||||
);
|
||||
};
|
||||
|
||||
private _paste = (event: ClipboardEvent) => {
|
||||
private readonly _paste = (event: ClipboardEvent) => {
|
||||
const clipboardEventState = new ClipboardEventState({
|
||||
event,
|
||||
});
|
||||
@@ -35,7 +35,7 @@ export class ClipboardControl {
|
||||
);
|
||||
};
|
||||
|
||||
constructor(private _dispatcher: UIEventDispatcher) {}
|
||||
constructor(private readonly _dispatcher: UIEventDispatcher) {}
|
||||
|
||||
private _createContext(event: Event, clipboardState: ClipboardEventState) {
|
||||
return UIEventStateContext.from(
|
||||
|
||||
Reference in New Issue
Block a user