Closed colemars closed 10 months ago
You shouldn’t pass an array here as (iirc) it will be used as type instead of using the generic type
where in the docs is this example?
Sorry, that was leftover from debugging. Updated to use example from website. The result is the same with or without the array there
I'll happily just accept a repo in which the above example from the docs is working as an answer, at least that would narrow it down to my env. But i've tested in two diff repos at this point and am still getting the above err.
The issue is probably that you do not have reflection enabled in your TSConfig. It should be a top level property, ie
{
"compilerOptions": { ... },
"reflection": true
}
Also make sure that the type compiler has been installed by running node_modules/.bin/deepkit-type-install
Dang, got that example working but none of the ReflectionClass
examples will work now.. bummer! Will check back in in a few months maybe.
It wirks for me 🤷♂️ It only works on classes compiled with the deepkit type compiler installed. So if you’re trying to use third party classes it won’t work
Hello, I copy and pasted your doc example into a new project and am receiving the above error,
Error: No type given
.And the project
Any guidance would be great as I really would like to make use of this library