c12
c12 copied to clipboard
Reflect default config in types
trafficstars
I think ResolvedConfig should not be possibly null, if a default config is present. This would make typings more intuitive, as I have to either cast or do something like this currently:
export const config = (await loadConfig<CustomConfig>({ name: 'myapp', cwd: '../', defaults })).config || defaults