MCPcopy
hub / github.com/toeverything/AFFiNE / is

Function is

blocksuite/framework/store/src/extension/selection/base.ts:39–43  ·  view source on GitHub ↗
(
    type: T
  )

Source from the content-addressed store, hash-verified

37 abstract equals(other: BaseSelection): boolean;
38
39 is<T extends SelectionConstructor>(
40 type: T
41 ): this is T extends SelectionConstructor<infer U> ? U : never {
42 return this.type === type.type;
43 }
44
45 abstract toJSON(): Record<string, unknown>;
46}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected