You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{merge}from"ts-deepmerge";consta: {o: string}={o: "Hello"};constb: {o?: string}={};constc=merge.withOptions({allowUndefinedOverrides: false},a,b);// this is incorrect// c is of type { o: string | undefined }// but should be// { o: string }// since c.o can never be undefined
The text was updated successfully, but these errors were encountered:
Hey, this is a duplicate of this issue - unfortunately I wasn't able to get the types to work as you're expecting here, (more details provided in my replies on the other issue), but contributions are always welcome if you'd like to give it a go and open a PR! 🙏
The text was updated successfully, but these errors were encountered: