-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extending an omitted interface doesn't work #464
Comments
Interesting, import { typeOf, validate } from '@deepkit/type';
test('validate nested interfaces', () => {
interface A {
readonly a: string;
readonly value: string;
};
type B = Omit<A, 'value'>;
const type = typeOf<B>();
console.log(validate({}, type)); // []
}); It only works for inline types deepkit-framework/packages/type/tests/standard-functions.spec.ts Lines 42 to 45 in 3fd48ea
|
|
weird, works for me. Added also a test that shows Omit works with non-inline types: a47111c |
I assume it's because my typescript target was set to |
The text was updated successfully, but these errors were encountered: