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
This code throws an error, while this is a valid typescript code:
constinterfaceWithAKnownKey=intersection([record(string(),any()),object({foo: string(),}),]);// Typescript: No ERROR.consttest: typeofinterfaceWithAKnownKey.TYPE={foo: "bar",extra: "buzz",};// StructError: At path: extra -- Expected a value of type `never`, but received: `"buzz"`interfaceWithAKnownKey.mask(test);
The text was updated successfully, but these errors were encountered:
This code throws an error, while this is a valid typescript code:
The text was updated successfully, but these errors were encountered: