> Type '{ dev: boolean; readonly prod: void; }' is not assignable to type '{ prod: true; }'
It's still a bad solution though; it allows nonsense values like {dev:true, prod:true}.