Skip to content

Commit 51c4ba0

Browse files
BlaszNoviny
authored andcommitted
Fix generic object spread (#30)
* Add failing test for generic spread with default props * Do not throw an error when prop types contain a generic spread * Update generic converter to convert utility types $Exact<T> is now converted to T directly to make object spreading easier to work with as we do not care about exactness when spreading from a prop documentation perspective. * Gitignore vscode metadata * Add tests * Add referenceIdName to identifiers converted in type mode This provides a name that can be used when wanting to print the name of a generic or similar, which is what we're doing with the typeof node. * Update typeof to use referenceIdName if name does not exist
1 parent c7dee86 commit 51c4ba0

File tree

4 files changed

+373
-11
lines changed

4 files changed

+373
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
*.log
3+
.vscode

0 commit comments

Comments
 (0)