diff --git a/doric-js/index.d.ts b/doric-js/index.d.ts index 21c5a696..ad8a3ee6 100644 --- a/doric-js/index.d.ts +++ b/doric-js/index.d.ts @@ -1255,13 +1255,13 @@ declare module "doric" { hintTextColor?: Color; multiline?: boolean; textAlignment?: Gravity; - onTextChange?: (text: string) => void; + onTextChange?: (text?: string) => void; onFocusChange?: (focused: boolean) => void; maxLength?: number; password?: boolean; editable?: boolean; returnKeyType?: ReturnKeyType; - onSubmitEditing?: (text: string) => void; + onSubmitEditing?: (text?: string) => void; enableHorizontalScrollBar?: boolean; enableVerticalScrollBar?: boolean; /** diff --git a/doric-js/lib/src/widget/input.d.ts b/doric-js/lib/src/widget/input.d.ts index 20aa2cb1..1bbaf84a 100644 --- a/doric-js/lib/src/widget/input.d.ts +++ b/doric-js/lib/src/widget/input.d.ts @@ -21,13 +21,13 @@ export declare class Input extends View { hintTextColor?: Color; multiline?: boolean; textAlignment?: Gravity; - onTextChange?: (text: string) => void; + onTextChange?: (text?: string) => void; onFocusChange?: (focused: boolean) => void; maxLength?: number; password?: boolean; editable?: boolean; returnKeyType?: ReturnKeyType; - onSubmitEditing?: (text: string) => void; + onSubmitEditing?: (text?: string) => void; enableHorizontalScrollBar?: boolean; enableVerticalScrollBar?: boolean; /** diff --git a/doric-js/src/widget/input.ts b/doric-js/src/widget/input.ts index 7c6c90ce..55815758 100644 --- a/doric-js/src/widget/input.ts +++ b/doric-js/src/widget/input.ts @@ -61,7 +61,7 @@ export class Input extends View { textAlignment?: Gravity @Property - onTextChange?: (text: string) => void + onTextChange?: (text?: string) => void @Property onFocusChange?: (focused: boolean) => void @@ -79,7 +79,7 @@ export class Input extends View { returnKeyType?: ReturnKeyType @Property - onSubmitEditing?: (text: string) => void + onSubmitEditing?: (text?: string) => void @Property enableHorizontalScrollBar?: boolean