4 ms·
Silly comment, but I concede this bit is very ugly — they should have extracted the inner type to an alias and used that twice. options: [ Omit<Cha
by dcre 2y ago
Silly comment, but I concede this bit is very ugly — they should have extracted the inner type to an alias and used that twice.
options: [
Omit<ChatCompletionParseParams, 'model'> & { model: Model },
Omit<ChatCompletionParseParams, 'model'> & { model: Model },
],
like this
type Options = Omit<ChatCompletionParseParams, 'model'> & { model: Model }
options: [Options, Options]