@@ -69,7 +69,7 @@ declare class Alert {
6969 * @param text - Optional default value for the text field.
7070 * @see https://docs.scriptable.app/alert/#-addtextfield
7171 */
72- addTextField ( placeholder ?: string , text ?: string ) : void ;
72+ addTextField ( placeholder ?: string , text ?: string ) : TextField ;
7373
7474 /**
7575 * _Adds a secure text field prompting for user input._
@@ -80,7 +80,7 @@ declare class Alert {
8080 * @param text - Optional default value for the text field.
8181 * @see https://docs.scriptable.app/alert/#-addsecuretextfield
8282 */
83- addSecureTextField ( placeholder ?: string , text ?: string ) : void ;
83+ addSecureTextField ( placeholder ?: string , text ?: string ) : TextField ;
8484
8585 /**
8686 * _Retrieves value of a text field._
@@ -1024,7 +1024,7 @@ declare class Contact {
10241024 /**
10251025 * _Note for the contact._
10261026 *
1027- * For security reasons, a contacts notes cannot be accessed in Siri, the Shortcuts app and in a notification.
1027+ * For security reasons, a contact's notes cannot be accessed in Siri, the Shortcuts app and in a notification.
10281028 * @see https://docs.scriptable.app/contact/#note
10291029 */
10301030 note : string ;
@@ -1058,7 +1058,7 @@ declare class Contact {
10581058 departmentName : string ;
10591059
10601060 /**
1061- * _The contacts job title._
1061+ * _The contact's job title._
10621062 * @see https://docs.scriptable.app/contact/#jobtitle
10631063 */
10641064 jobTitle : string ;
@@ -5383,6 +5383,118 @@ declare var Speech: {
53835383 speak ( text : string ) : void ;
53845384} ;
53855385
5386+ /**
5387+ * _Text field in an alert._
5388+ * @see https://docs.scriptable.app/textfield
5389+ */
5390+ declare class TextField {
5391+ /**
5392+ * _Text in the text field._
5393+ * @see https://docs.scriptable.app/textfield/#text
5394+ */
5395+ text : string ;
5396+
5397+ /**
5398+ * _Placeholder shown in the text field while it is empty._
5399+ * @see https://docs.scriptable.app/textfield/#placeholder
5400+ */
5401+ placeholder : string ;
5402+
5403+ /**
5404+ * _Hides the text that is entered when set to true._
5405+ *
5406+ * The default value is false.
5407+ * @see https://docs.scriptable.app/textfield/#issecure
5408+ */
5409+ isSecure : boolean ;
5410+
5411+ /**
5412+ * _Color of the text._
5413+ * @see https://docs.scriptable.app/textfield/#textcolor
5414+ */
5415+ textColor : Color ;
5416+
5417+ /**
5418+ * _Font of the text._
5419+ * @see https://docs.scriptable.app/textfield/#font
5420+ */
5421+ font : Font ;
5422+
5423+ /**
5424+ * _Use the default keyboard for entering text._
5425+ * @see https://docs.scriptable.app/textfield/#-setdefaultkeyboard
5426+ */
5427+ setDefaultKeyboard ( ) : void ;
5428+
5429+ /**
5430+ * _Use a keyboard that prominently features the numbers 0 through 9._
5431+ * @see https://docs.scriptable.app/textfield/#-setnumberpadkeyboard
5432+ */
5433+ setNumberPadKeyboard ( ) : void ;
5434+
5435+ /**
5436+ * _Use a numeric keyboard with a decimal point for entering text._
5437+ * @see https://docs.scriptable.app/textfield/#-setdecimalpadkeyboard
5438+ */
5439+ setDecimalPadKeyboard ( ) : void ;
5440+
5441+ /**
5442+ * _Use a numeric keyboard with punctuation for entering text._
5443+ * @see https://docs.scriptable.app/textfield/#-setnumbersandpunctuationkeyboard
5444+ */
5445+ setNumbersAndPunctuationKeyboard ( ) : void ;
5446+
5447+ /**
5448+ * _Use a keyboard that prominently features the numbers 0 through 9 and the * and # characters._
5449+ * @see https://docs.scriptable.app/textfield/#-setphonepadkeyboard
5450+ */
5451+ setPhonePadKeyboard ( ) : void ;
5452+
5453+ /**
5454+ * _Use a keyboard that prominently features the space and period characters._
5455+ * @see https://docs.scriptable.app/textfield/#-setwebsearchkeyboard
5456+ */
5457+ setWebSearchKeyboard ( ) : void ;
5458+
5459+ /**
5460+ * _Use a keyboard that prominently features the @, period and space characters._
5461+ * @see https://docs.scriptable.app/textfield/#-setemailaddresskeyboard
5462+ */
5463+ setEmailAddressKeyboard ( ) : void ;
5464+
5465+ /**
5466+ * _Use a keyboard that prominently features the period and slash characters and the ".com" string._
5467+ * @see https://docs.scriptable.app/textfield/#-seturlkeyboard
5468+ */
5469+ setURLKeyboard ( ) : void ;
5470+
5471+ /**
5472+ * _Use a keyboard that prominently features the @ and # characters._
5473+ * @see https://docs.scriptable.app/textfield/#-settwitterkeyboard
5474+ */
5475+ setTwitterKeyboard ( ) : void ;
5476+
5477+ /**
5478+ * _Left aligns the text._
5479+ *
5480+ * This is the default text alignment.
5481+ * @see https://docs.scriptable.app/textfield/#-leftaligntext
5482+ */
5483+ leftAlignText ( ) : void ;
5484+
5485+ /**
5486+ * _Center aligns the text._
5487+ * @see https://docs.scriptable.app/textfield/#-centeraligntext
5488+ */
5489+ centerAlignText ( ) : void ;
5490+
5491+ /**
5492+ * _Right aligns the text._
5493+ * @see https://docs.scriptable.app/textfield/#-rightaligntext
5494+ */
5495+ rightAlignText ( ) : void ;
5496+ }
5497+
53865498/**
53875499 * _A timer that fires after a time interval has elapsed._
53885500 *
@@ -5743,7 +5855,7 @@ declare class UITableRow {
57435855 * Rows cannot be tapped when the tables is presented in Siri.
57445856 * @see https://docs.scriptable.app/uitablerow/#onselect
57455857 */
5746- onSelect : ( row : number ) => void ;
5858+ onSelect : ( ) => void ;
57475859}
57485860
57495861/**
@@ -6591,23 +6703,23 @@ declare class XMLParser {
65916703 * Called by the parser when it encounters an end tag for an element. The function takes the element name as a parameter.
65926704 * @see https://docs.scriptable.app/xmlparser/#didendelement
65936705 */
6594- didEndElement : ( arg0 : string ) => void ;
6706+ didEndElement : ( name : string ) => void ;
65956707
65966708 /**
65976709 * _Function called when the parser finds characters of an element._
65986710 *
65996711 * The parser calls this function with a string whenever it finds characters for the current element. This function may be called several times for a single element.
66006712 * @see https://docs.scriptable.app/xmlparser/#foundcharacters
66016713 */
6602- foundCharacters : ( arg0 : string ) => void ;
6714+ foundCharacters : ( str : string ) => void ;
66036715
66046716 /**
66056717 * _Function called when the parser encounters an error._
66066718 *
66076719 * The parser will call this function when it encounters a fatal error preventing it from continuing to parse. When the function is called the parsing is stopped.
66086720 * @see https://docs.scriptable.app/xmlparser/#parseerroroccurred
66096721 */
6610- parseErrorOccurred : ( arg0 : string ) => void ;
6722+ parseErrorOccurred : ( error : string ) => void ;
66116723}
66126724
66136725/**
0 commit comments