Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(parse/{readStringLiteral,readNumberLiteral}): convert to ts
- add TemplateElementType element type enum - add new file for template type interfaces
- Loading branch information
1 parent
16acead
commit 5ae8072
Showing
4 changed files
with
80 additions
and
6 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
8 changes: 5 additions & 3 deletions
8
...ions/primary/literal/readNumberLiteral.js → ...ions/primary/literal/readNumberLiteral.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TemplateElementType from 'config/types'; | ||
|
||
export interface LiteralTemplateElement { | ||
t: TemplateElementType.STRING_LITERAL | TemplateElementType.NUMBER_LITERAL; | ||
v: string; | ||
} |