@@ -82,38 +82,38 @@ export function isHostText(element?: HostElement | null) {
8282 * Checks if the given element is a host TextInput element.
8383 * @param element The element to check.
8484 */
85- export function isHostTextInput ( element ?: HostElement | null ) : element is HostElement {
85+ export function isHostTextInput ( element ?: HostElement | null ) {
8686 return element ?. type === getHostComponentNames ( ) . textInput ;
8787}
8888
8989/**
9090 * Checks if the given element is a host Image element.
9191 * @param element The element to check.
9292 */
93- export function isHostImage ( element ?: HostElement | null ) : element is HostElement {
93+ export function isHostImage ( element ?: HostElement | null ) {
9494 return element ?. type === getHostComponentNames ( ) . image ;
9595}
9696
9797/**
9898 * Checks if the given element is a host Switch element.
9999 * @param element The element to check.
100100 */
101- export function isHostSwitch ( element ?: HostElement | null ) : element is HostElement {
101+ export function isHostSwitch ( element ?: HostElement | null ) {
102102 return element ?. type === getHostComponentNames ( ) . switch ;
103103}
104104
105105/**
106106 * Checks if the given element is a host ScrollView element.
107107 * @param element The element to check.
108108 */
109- export function isHostScrollView ( element ?: HostElement | null ) : element is HostElement {
109+ export function isHostScrollView ( element ?: HostElement | null ) {
110110 return element ?. type === getHostComponentNames ( ) . scrollView ;
111111}
112112
113113/**
114114 * Checks if the given element is a host Modal element.
115115 * @param element The element to check.
116116 */
117- export function isHostModal ( element ?: HostElement | null ) : element is HostElement {
117+ export function isHostModal ( element ?: HostElement | null ) {
118118 return element ?. type === getHostComponentNames ( ) . modal ;
119119}
0 commit comments