eslint: use semicolon TypeScript delimeter
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
export type Rgb = { r: number, g: number, b: number };
|
||||
export type Hsl = { h: number, s: number, l: number };
|
||||
export type Rgb = { r: number; g: number; b: number };
|
||||
export type Hsl = { h: number; s: number; l: number };
|
||||
|
||||
export type TailwindColorObject = {
|
||||
[key: number]: string
|
||||
[key: number]: string;
|
||||
};
|
||||
|
||||
export type TailwindColorPalette = {
|
||||
[key: string]: TailwindColorObject | string
|
||||
[key: string]: TailwindColorObject | string;
|
||||
}
|
||||
|
||||
@ -53,8 +53,8 @@ type Account = SchemaAccount & LegacyMap;
|
||||
|
||||
interface Status extends ReturnType<typeof StatusRecord> {
|
||||
// HACK: same as above
|
||||
quote: EmbeddedEntity<Status>
|
||||
reblog: EmbeddedEntity<Status>
|
||||
quote: EmbeddedEntity<Status>;
|
||||
reblog: EmbeddedEntity<Status>;
|
||||
}
|
||||
|
||||
// Utility types
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import type { Event, EventTemplate } from 'nostr-tools';
|
||||
|
||||
interface Nostr {
|
||||
getPublicKey(): Promise<string>
|
||||
signEvent(event: EventTemplate): Promise<Event>
|
||||
getPublicKey(): Promise<string>;
|
||||
signEvent(event: EventTemplate): Promise<Event>;
|
||||
nip04?: {
|
||||
encrypt: (pubkey: string, plaintext: string) => Promise<string>
|
||||
decrypt: (pubkey: string, ciphertext: string) => Promise<string>
|
||||
}
|
||||
encrypt: (pubkey: string, plaintext: string) => Promise<string>;
|
||||
decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
|
||||
};
|
||||
}
|
||||
|
||||
export default Nostr;
|
||||
2
src/types/window.d.ts
vendored
2
src/types/window.d.ts
vendored
@ -2,6 +2,6 @@ import type Nostr from './nostr';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
nostr?: Nostr
|
||||
nostr?: Nostr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user