mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[be] Factor out named type for JSXText instr variant
This commit is contained in:
@@ -692,7 +692,7 @@ export type InstructionValue =
|
||||
value: number | boolean | string | null | undefined;
|
||||
loc: SourceLocation;
|
||||
}
|
||||
| { kind: "JSXText"; value: string; loc: SourceLocation }
|
||||
| JSXText
|
||||
| {
|
||||
kind: "BinaryExpression";
|
||||
operator: t.BinaryExpression["operator"];
|
||||
@@ -889,6 +889,8 @@ export type Primitive = {
|
||||
loc: SourceLocation;
|
||||
};
|
||||
|
||||
export type JSXText = { kind: "JSXText"; value: string; loc: SourceLocation };
|
||||
|
||||
export type LoadGlobal = {
|
||||
kind: "LoadGlobal";
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user