-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow recursive type definition
Let's say we have the following type: ```typescript type Chapter = { title: string next: Chapter | null } ``` Here, `Chapter` type is recursive, referencing itself. Typelizer can generate this kind of type, but currently it tries to import itself and causes an error. This commit fixes this issue by ignoring itself from import target. Note that I added spec for Alba only since that was my case, but please tell me if I should add more specs for other serializers.
- Loading branch information
1 parent
6ac726e
commit 5cd2dab
Showing
4 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters