Fix onModifyTemplate signature

This will intentionally fail CI. It's my hope that #5664 will pass it.
This commit is contained in:
Guangcong Luo
2019-08-01 16:09:41 -05:00
parent 745638b5e1
commit bf37e6a5fa

View File

@@ -1037,7 +1037,7 @@ interface FormatsData extends EventMethods {
onAfterMega?: (this: Battle, pokemon: Pokemon) => void
onBegin?: (this: Battle) => void
onChangeSet?: (this: ModdedDex, set: PokemonSet, format: Format, setHas?: AnyObject, teamHas?: AnyObject) => string[] | void
onModifyTemplate?: (this: Battle, template: Template, target: Pokemon, source: Pokemon, effect: Effect) => Template | void
onModifyTemplate?: (this: Battle, template: Template, target?: Pokemon, source?: Pokemon, effect?: Effect) => Template | void
onStart?: (this: Battle) => void
onTeamPreview?: (this: Battle) => void
onValidateSet?: (this: ModdedDex, set: PokemonSet, format: Format, setHas: AnyObject, teamHas: AnyObject) => string[] | void