issues
search
master-thesis-repositories
/
nest-rest-generator
A tool to generate a REST client for NestJs.
0
stars
0
forks
source link
Type Extraction
#2
Open
ingoandelhofs
opened
1 year ago
ingoandelhofs
commented
1 year ago
Method 1
Infer the type
Resolve the type (fully)
Method 2
Infer the type
Resolve the type (without subtypes)
Find the type and all the sub types
Tests
literal (basic, object, ...)
basic type
object
array
generic (custom, build-in)
union
intersection
Method 3
Infer the type
Find the type
Find all the sub types
ingoandelhofs
commented
1 year ago
Get type declaration
https://stackoverflow.com/questions/67530264/typescript-compiler-api-how-to-get-literal-value-by-importspecifier-node
ingoandelhofs
commented
1 year ago
https://stackoverflow.com/questions/66389805/how-to-extract-type-arguments-and-type-parameters-from-a-type-aliases-references
Method 1
Method 2
Tests
Method 3