mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Specify that flushvar supports closures
This commit is contained in:
parent
946994af22
commit
fa9ae4c979
@ -1228,7 +1228,7 @@ export function registerVariableCommands() {
|
|||||||
new SlashCommandEnumValue('not', '!a'),
|
new SlashCommandEnumValue('not', '!a'),
|
||||||
new SlashCommandEnumValue('in', 'a includes b'),
|
new SlashCommandEnumValue('in', 'a includes b'),
|
||||||
new SlashCommandEnumValue('nin', 'a not includes b'),
|
new SlashCommandEnumValue('nin', 'a not includes b'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
new SlashCommandNamedArgument(
|
new SlashCommandNamedArgument(
|
||||||
'else', 'command to execute if not true', [ARGUMENT_TYPE.CLOSURE, ARGUMENT_TYPE.SUBCOMMAND], false,
|
'else', 'command to execute if not true', [ARGUMENT_TYPE.CLOSURE, ARGUMENT_TYPE.SUBCOMMAND], false,
|
||||||
@ -1306,7 +1306,7 @@ export function registerVariableCommands() {
|
|||||||
new SlashCommandEnumValue('not', '!a'),
|
new SlashCommandEnumValue('not', '!a'),
|
||||||
new SlashCommandEnumValue('in', 'a includes b'),
|
new SlashCommandEnumValue('in', 'a includes b'),
|
||||||
new SlashCommandEnumValue('nin', 'a not includes b'),
|
new SlashCommandEnumValue('nin', 'a not includes b'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
new SlashCommandNamedArgument(
|
new SlashCommandNamedArgument(
|
||||||
'guard', 'disable loop iteration limit', [ARGUMENT_TYPE.STRING], false, false, null, commonEnumProviders.boolean('onOff')(),
|
'guard', 'disable loop iteration limit', [ARGUMENT_TYPE.STRING], false, false, null, commonEnumProviders.boolean('onOff')(),
|
||||||
@ -1400,8 +1400,8 @@ export function registerVariableCommands() {
|
|||||||
unnamedArgumentList: [
|
unnamedArgumentList: [
|
||||||
SlashCommandNamedArgument.fromProps({
|
SlashCommandNamedArgument.fromProps({
|
||||||
name: 'key',
|
name: 'key',
|
||||||
description: 'variable name',
|
description: 'variable name or closure that returns a variable name',
|
||||||
typeList: [ARGUMENT_TYPE.VARIABLE_NAME],
|
typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.CLOSURE],
|
||||||
enumProvider: commonEnumProviders.variables('local'),
|
enumProvider: commonEnumProviders.variables('local'),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@ -1426,8 +1426,8 @@ export function registerVariableCommands() {
|
|||||||
unnamedArgumentList: [
|
unnamedArgumentList: [
|
||||||
SlashCommandNamedArgument.fromProps({
|
SlashCommandNamedArgument.fromProps({
|
||||||
name: 'key',
|
name: 'key',
|
||||||
description: 'variable name',
|
description: 'variable name or closure that returns a variable name',
|
||||||
typeList: [ARGUMENT_TYPE.VARIABLE_NAME],
|
typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.CLOSURE],
|
||||||
enumProvider: commonEnumProviders.variables('global'),
|
enumProvider: commonEnumProviders.variables('global'),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user