mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
chore: fix eslint in blocksuite (#9232)
This commit is contained in:
@@ -4,7 +4,7 @@ import { PeekViewProvider } from './service.js';
|
||||
import type { PeekableClass, PeekViewService } from './type.js';
|
||||
|
||||
export class PeekableController<T extends PeekableClass> {
|
||||
private _getPeekViewService = (): PeekViewService | null => {
|
||||
private readonly _getPeekViewService = (): PeekViewService | null => {
|
||||
return this.target.std.getOptional(PeekViewProvider);
|
||||
};
|
||||
|
||||
@@ -25,7 +25,7 @@ export class PeekableController<T extends PeekableClass> {
|
||||
}
|
||||
|
||||
constructor(
|
||||
private target: T,
|
||||
private enable?: (e: T) => boolean
|
||||
private readonly target: T,
|
||||
private readonly enable?: (e: T) => boolean
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user