mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-01 00:19:45 +02:00
fix ts error
This commit is contained in:
parent
5add2819a9
commit
1d0582b2f8
@ -3,7 +3,14 @@ import { Account } from "./account";
|
||||
|
||||
export default class AmberAccount extends Account {
|
||||
readonly type = "amber";
|
||||
signer: AmberSigner;
|
||||
|
||||
protected declare _signer?: AmberSigner | undefined;
|
||||
public get signer(): AmberSigner | undefined {
|
||||
return this._signer;
|
||||
}
|
||||
public set signer(value: AmberSigner | undefined) {
|
||||
this._signer = value;
|
||||
}
|
||||
|
||||
constructor(pubkey: string) {
|
||||
super(pubkey);
|
||||
|
@ -5,7 +5,14 @@ import { Account } from "./account";
|
||||
|
||||
export default class NostrConnectAccount extends Account {
|
||||
readonly type = "nostr-connect";
|
||||
signer: NostrConnectSigner;
|
||||
|
||||
protected declare _signer: NostrConnectSigner;
|
||||
public get signer(): NostrConnectSigner {
|
||||
return this._signer;
|
||||
}
|
||||
public set signer(value: NostrConnectSigner) {
|
||||
this._signer = value;
|
||||
}
|
||||
|
||||
constructor(pubkey: string, signer?: NostrConnectSigner) {
|
||||
super(pubkey);
|
||||
|
@ -3,7 +3,14 @@ import { Account } from "./account";
|
||||
|
||||
export default class PasswordAccount extends Account {
|
||||
readonly type = "local";
|
||||
declare signer: PasswordSigner;
|
||||
|
||||
protected declare _signer: PasswordSigner;
|
||||
public get signer(): PasswordSigner {
|
||||
return this._signer;
|
||||
}
|
||||
public set signer(value: PasswordSigner) {
|
||||
this._signer = value;
|
||||
}
|
||||
|
||||
constructor(pubkey: string) {
|
||||
super(pubkey);
|
||||
|
@ -3,7 +3,13 @@ import { Account } from "./account";
|
||||
|
||||
export default class SerialPortAccount extends Account {
|
||||
readonly type = "serial";
|
||||
signer: SerialPortSigner;
|
||||
protected declare _signer: SerialPortSigner;
|
||||
public get signer(): SerialPortSigner {
|
||||
return this._signer;
|
||||
}
|
||||
public set signer(value: SerialPortSigner) {
|
||||
this._signer = value;
|
||||
}
|
||||
|
||||
constructor(pubkey: string) {
|
||||
super(pubkey);
|
||||
|
Loading…
x
Reference in New Issue
Block a user