adds return type
This commit is contained in:
parent
34fc9c5621
commit
3b72f4d949
@ -19,7 +19,7 @@ export class QClipboard extends Component {
|
||||
setText = (text: string, mode: QClipboardMode) => {
|
||||
this.native.setText(text, mode);
|
||||
};
|
||||
text = (mode: QClipboardMode) => {
|
||||
text = (mode: QClipboardMode): string => {
|
||||
return this.native.text(mode);
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user