Skip to content

Commit

Permalink
TS types
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed May 26, 2022
1 parent 310b249 commit 2e4da98
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 91 deletions.
92 changes: 92 additions & 0 deletions lib/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,95 @@
/* Authme Import file structure */
interface LibImportFile {
names: string[]
secrets: string[]
issuers: string[]
types?: string[]
}

interface LibAuthmeFile {
role: "codes" | "import" | "export"
encrypted: boolean
codes: string
date: string
version: 3
}

interface LibStorage {
require_password: boolean
password: string
key: string
issuers: string[]
settings_page: string
}

interface LibSettings {
info: {
version: string
build: string
date: string
}

settings: {
launch_on_startup: boolean
close_to_tray: boolean
codes_description: boolean
reset_after_copy: boolean
search_history: boolean
hardware_acceleration: boolean
analytics: boolean
language: null | string
sort: null | number
search_filter: {
name: boolean
description: boolean
}
}

security: {
require_password: null | boolean
password: null | string
key: null | string
}

statistics: {
opens: number
rated: null | boolean
feedback: null | boolean
}

search_history: {
latest: null | string
}

global_shortcuts: {
show: string
settings: string
exit: string
}

shortcuts: {
show: string
settings: string
exit: string
zoom_reset: string
zoom_in: string
zoom_out: string
edit: string
import: string
export: string
release: string
support: string
docs: string
licenses: string
update: string
info: string
}

window: Electron.Rectangle

experimental?: {}
}

/** Query selector element types */
interface Element {
/** Element styles */
Expand Down
91 changes: 0 additions & 91 deletions lib/types.js

This file was deleted.

0 comments on commit 2e4da98

Please sign in to comment.