rtResponse: Type<{ isOk: boolean; pl: string | void; }, { isOk: boolean; pl: string | void; }, unknown>; request: string; response?: { ...; } | undefined; with(client: Client): Promise<...>; withs(server: Server<...>, client: WebSocket): Promise<...>; }' is not assignable to parameter of type 'Method<string, { isOk: boolean; pl: string | void; }>'.
The types of 'rtRequest.encode' are incompatible between these types.
Type 'Encode<string, string>' is not assignable to type 'Encode<unknown, unknown>'.
Type 'unknown' is not assignable to type 'string'.
Так он и пишет тебе, что у тя тип undefined возвращается
Обсуждают сегодня