The following code is considered as valid by Typescript, although I was expecting it to complain that the filter foo
in commonArguments
was empty.
import type { NonEmptyObject } from "type-fest"
interface CommonArguments {
[filter: string]: NonEmptyObject<{ [argument: string]: string | number | undefined }>
}
export const commonArguments: CommonArguments = {
foo: {}
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too