Changeset

13856:14c1d6c7ac2d

util.stanza: Update Teal interface for tl 0.24.0
author Kim Alvefur <zash@zash.se>
date Sun, 13 Oct 2024 12:59:34 +0200
parents 13855:488483e1d915
children 13857:fc6495c887f6
files teal-src/prosody/util/stanza.d.tl
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/teal-src/prosody/util/stanza.d.tl	Fri Apr 18 12:25:38 2025 +0100
+++ b/teal-src/prosody/util/stanza.d.tl	Sun Oct 13 12:59:34 2024 +0200
@@ -37,10 +37,9 @@
 		"unexpected-request"
 	end
 
-	record stanza_t
+	record stanza_t is { stanza_t | string }
 		name : string
 		attr : { string : string }
-		{ stanza_t | string }
 		tags : { stanza_t }
 
 		query : function ( stanza_t, string ) : stanza_t
@@ -77,10 +76,9 @@
 		indent : function ( stanza_t, integer, string ) : stanza_t
 	end
 
-	record serialized_stanza_t
+	record serialized_stanza_t is { serialized_stanza_t | string }
 		name : string
 		attr : { string : string }
-		{ serialized_stanza_t | string }
 	end
 
 	record message_attr