From 3124f1fd0d3196ac52ee532c89109c43d15620a3 Mon Sep 17 00:00:00 2001 From: Nazar Antoniuk <75927667+Nazar-Ant@users.noreply.github.com> Date: Fri, 23 Jun 2023 12:33:39 +0300 Subject: [PATCH] refactor: use never record type instead of empty object (#81) --- src/conversation.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/conversation.ts b/src/conversation.ts index c4ee97b..9164b92 100644 --- a/src/conversation.ts +++ b/src/conversation.ts @@ -30,8 +30,9 @@ import { resolver, } from "./utils.ts"; type MaybeArray = T | T[]; -// deno-lint-ignore ban-types -type StringWithSuggestions = (string & {}) | S; +type StringWithSuggestions = + | (string & Record) + | S; /** * A user-defined conversation builder function that can be turned into