fix(clipboard): adjust clip data and response kind types

pull/306/head^2
Lucas Nogueira 2 years ago
parent 00757a2918
commit 4d32919f0f
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1

@ -31,7 +31,7 @@ interface Clip<K, T> {
options: T
}
type ClipResponse = Clip<'Text', string>
type ClipResponse = Clip<'PlainText', string>
/**
* Writes plain text to the clipboard.
@ -49,7 +49,7 @@ type ClipResponse = Clip<'Text', string>
async function writeText(text: string, opts?: { label?: string }): Promise<void> {
return invoke('plugin:clipboard|write', {
data: {
kind: 'Text',
kind: 'PlainText',
options: {
label: opts?.label,
text

Loading…
Cancel
Save