Remove @ts-expect-error directive when getting the environment values #17
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Currently, I'm doing this to allow type-safe environments.
I'm looking for a way to provide the right type to the
getOrThrow
function of theConfigService
.If I remove the
@ts-expect-error
directive, the message thrown by TypeScript is the following:The
KeyOf<T>
type is an internal type of theConfigService
and has the following definition:The text was updated successfully, but these errors were encountered: