conf
conf copied to clipboard
Store.set is not type checked
This line makes Typescript accept any key/value for set
https://github.com/sindresorhus/conf/blob/06b640d8cfa22d020b1ac1996a9dca0fc0289f83/source/index.ts#L197
I think it should be safe to remove since get
does not have an equivalent overload
I think it's used for dot-paths (like foo.bar
). When TS 4.7 is out (required to move to ESM), we can update dot-prop
and get type-safe dot paths, which may make it possible to remove that line.