Rename type => cast

5d798fafdd3040c1423f4e50c337d9c5f1b5cd1f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +10 -9Showing whitespace changes
public/scripts/variables.js+10 -9
@@ -909,8 +909,8 @@ export function registerVariableCommands() {
909909 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false,
910910 ),
911911 SlashCommandNamedArgument.fromProps({
912912 name: 'typecast',
913913 description: 'change the type of the value when used with index',
914914 forceEnum: true,
915915 enumProvider: commonEnumProviders.types,
916916 isRequired: false,
@@ -925,7 +925,7 @@ export function registerVariableCommands() {
925925 helpString: `
926926 <div>
927927 Set a local variable value and pass it down the pipe. The <code>index</code> argument is optional.
928928 To performconvert the value to a typespecific conversionJSON type when using <code>index</code>, use the <code>typecase</code> argument.
929929 </div>
930930 <div>
931931 <strong>Example:</strong>
@@ -1035,8 +1035,8 @@ export function registerVariableCommands() {
10351035 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false,
10361036 ),
10371037 SlashCommandNamedArgument.fromProps({
10381038 name: 'typecast',
10391039 description: 'change the type of the value when used with index',
10401040 forceEnum: true,
10411041 enumProvider: commonEnumProviders.types,
10421042 isRequired: false,
@@ -1051,7 +1051,7 @@ export function registerVariableCommands() {
10511051 helpString: `
10521052 <div>
10531053 Set a global variable value and pass it down the pipe. The <code>index</code> argument is optional.
10541054 To performconvert the value to a typespecific conversionJSON type when using <code>index</code>, use the <code>typecast</code> argument.
10551055 </div>
10561056 <div>
10571057 <strong>Example:</strong>
@@ -2062,8 +2062,8 @@ export function registerVariableCommands() {
20622062 false, // acceptsMultiple
20632063 ),
20642064 SlashCommandNamedArgument.fromProps({
20652065 name: 'typecast',
20662066 description: 'change the type of the value when used with index',
20672067 forceEnum: true,
20682068 enumProvider: commonEnumProviders.types,
20692069 isRequired: false,
@@ -2088,7 +2088,8 @@ export function registerVariableCommands() {
20882088 splitUnnamedArgumentCount: 1,
20892089 helpString: `
20902090 <div>
2091- Get or set a variable.
2091+ Get or set a variable. Use <code>index</code> to access elements of a list or dictionary.
2092+ To convert the value to a specific JSON type when using with <code>index</code>, use the <code>cast</code> argument.
20922093 </div>
20932094 <div>
20942095 <strong>Examples:</strong>