cast => as

329e395077ab03eeaf2a19f7cea8a74950122f7c

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

1 files changed, +6 -6Ignore whitespace
public/scripts/variables.js+6 -6
@@ -909,7 +909,7 @@ export function registerVariableCommands() {
909 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false,909 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false,
910 ),910 ),
911 SlashCommandNamedArgument.fromProps({911 SlashCommandNamedArgument.fromProps({
912 name: 'cast',912 name: 'as',
913 description: 'change the type of the value when used with index',913 description: 'change the type of the value when used with index',
914 forceEnum: true,914 forceEnum: true,
915 enumProvider: commonEnumProviders.types,915 enumProvider: commonEnumProviders.types,
@@ -925,7 +925,7 @@ export function registerVariableCommands() {
925 helpString: `925 helpString: `
926 <div>926 <div>
927 Set a local variable value and pass it down the pipe. The <code>index</code> argument is optional.927 Set a local variable value and pass it down the pipe. The <code>index</code> argument is optional.
928 To convert the value to a specific JSON type when using <code>index</code>, use the <code>case</code> argument.928 To convert the value to a specific JSON type when using <code>index</code>, use the <code>as</code> argument.
929 </div>929 </div>
930 <div>930 <div>
931 <strong>Example:</strong>931 <strong>Example:</strong>
@@ -1035,7 +1035,7 @@ export function registerVariableCommands() {
1035 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false,1035 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false,
1036 ),1036 ),
1037 SlashCommandNamedArgument.fromProps({1037 SlashCommandNamedArgument.fromProps({
1038 name: 'cast',1038 name: 'as',
1039 description: 'change the type of the value when used with index',1039 description: 'change the type of the value when used with index',
1040 forceEnum: true,1040 forceEnum: true,
1041 enumProvider: commonEnumProviders.types,1041 enumProvider: commonEnumProviders.types,
@@ -1051,7 +1051,7 @@ export function registerVariableCommands() {
1051 helpString: `1051 helpString: `
1052 <div>1052 <div>
1053 Set a global variable value and pass it down the pipe. The <code>index</code> argument is optional.1053 Set a global variable value and pass it down the pipe. The <code>index</code> argument is optional.
1054 To convert the value to a specific JSON type when using <code>index</code>, use the <code>cast</code> argument.1054 To convert the value to a specific JSON type when using <code>index</code>, use the <code>as</code> argument.
1055 </div>1055 </div>
1056 <div>1056 <div>
1057 <strong>Example:</strong>1057 <strong>Example:</strong>
@@ -2062,7 +2062,7 @@ export function registerVariableCommands() {
2062 false, // acceptsMultiple2062 false, // acceptsMultiple
2063 ),2063 ),
2064 SlashCommandNamedArgument.fromProps({2064 SlashCommandNamedArgument.fromProps({
2065 name: 'cast',2065 name: 'as',
2066 description: 'change the type of the value when used with index',2066 description: 'change the type of the value when used with index',
2067 forceEnum: true,2067 forceEnum: true,
2068 enumProvider: commonEnumProviders.types,2068 enumProvider: commonEnumProviders.types,
@@ -2089,7 +2089,7 @@ export function registerVariableCommands() {
2089 helpString: `2089 helpString: `
2090 <div>2090 <div>
2091 Get or set a variable. Use <code>index</code> to access elements of a list or dictionary.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.2092 To convert the value to a specific JSON type when using with <code>index</code>, use the <code>as</code> argument.
2093 </div>2093 </div>
2094 <div>2094 <div>
2095 <strong>Examples:</strong>2095 <strong>Examples:</strong>