Skip to content

Commit

Permalink
refactor: use never record type instead of empty object (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
niusia-ua authored Jun 23, 2023
1 parent 4cf5723 commit 3124f1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ import {
resolver,
} from "./utils.ts";
type MaybeArray<T> = T | T[];
// deno-lint-ignore ban-types
type StringWithSuggestions<S extends string> = (string & {}) | S;
type StringWithSuggestions<S extends string> =
| (string & Record<never, never>)
| S;

/**
* A user-defined conversation builder function that can be turned into
Expand Down

0 comments on commit 3124f1f

Please sign in to comment.