Eveble / typend

Runtime validation for TypeScript
MIT License
1 stars 0 forks source link

Generic types? #43

Open akoidan opened 2 years ago

akoidan commented 2 years ago

Is it possible to check generics? import {check} from 'typend'

interface A<T> {
  a: T;
  c: string;
}

check<A<number>>({
  b: 'value'
})

this doesn't throw any errors, despite the type, despite that a is not even present neither c

akoidan commented 2 years ago

``