Parameters
- component:
| {
baseline: { hidden: boolean; id: string };
type?: "EntryReplacement";
variants: { hidden: boolean; id: string }[];
}
| {
baseline: {
value: null
| string
| number
| boolean
| Record<string, JSONType>;
};
key: string;
type: "InlineVariable";
valueType: "Boolean"
| "Number"
| "Object"
| "String";
variants: {
value: null | string | number | boolean | Record<string, JSONType>;
}[];
}- {
baseline: { hidden: boolean; id: string };
type?: "EntryReplacement";
variants: { hidden: boolean; id: string }[];
}baseline: { hidden: boolean; id: string }
hidden: boolean
id: string
Optionaltype?: "EntryReplacement"
variants: { hidden: boolean; id: string }[]
- {
baseline: {
value: null | string | number | boolean | Record<string, JSONType>;
};
key: string;
type: "InlineVariable";
valueType: "Boolean"
| "Number"
| "Object"
| "String";
variants: {
value: null | string | number | boolean | Record<string, JSONType>;
}[];
}baseline: { value: null | string | number | boolean | Record<string, JSONType> }
value: null | string | number | boolean | Record<string, JSONType>
key: string
type: "InlineVariable"
valueType: "Boolean" | "Number" | "Object" | "String"
variants: { value: null | string | number | boolean | Record<string, JSONType> }[]
Returns component is {
baseline: {
value: null | string | number | boolean | Record<string, JSONType>;
};
key: string;
type: "InlineVariable";
valueType: "Boolean"
| "Number"
| "Object"
| "String";
variants: {
value: null | string | number | boolean | Record<string, JSONType>;
}[];
}
true if the component is an InlineVariable component, otherwise false.
Type guard for InlineVariableComponent.