PEP-225: тип в тесте

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
peppa-bot 2026-11-20 21:24:07 +05:00
parent 33a830fe07
commit 98ce49abaf

View File

@ -16,7 +16,7 @@ const user = (login: string) => core.upsertUserFromGitea(db, { id: 9100 + seq++,
type Msg = Record<string, unknown> & { t: string };
/** A connection driven directly: what the server sent and how it closed. */
function conn(u: core.User) {
function conn(u: import("@peppa/core").User) {
const out: Msg[] = [];
const closed: Array<{ code: number; reason: string }> = [];
const c = new LiveConnection(db, u, (m) => out.push(m as Msg), (code, reason) => closed.push({ code, reason }));