-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow for whitespace in snippets declaration (#2366)
Fixes sveltejs/svelte#11478 The problem was that the generic generation was relying on the start position of typeAnnotation + 1. But if there are whytespaces this is not correct and the generate type is wrong Snippet<[: string]>. However inside the first typeAnnotation there's always a second typeAnnotation field which only includes the actual types
- Loading branch information
1 parent
9d7907e
commit 80622df
Showing
3 changed files
with
24 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