diff --git a/electron/common/account/types.ts b/electron/common/account/types.ts new file mode 100644 index 00000000..ed9dbef7 --- /dev/null +++ b/electron/common/account/types.ts @@ -0,0 +1,10 @@ +export interface Account { + accountName: string; + accountPassword: string; +} + +export interface Character { + accountName: string; + characterName: string; + gameCode: string; +} diff --git a/electron/main/account/account.service.ts b/electron/main/account/account.service.ts index f179fbee..92ed4edb 100644 --- a/electron/main/account/account.service.ts +++ b/electron/main/account/account.service.ts @@ -1,16 +1,12 @@ import { safeStorage } from 'electron'; import isEmpty from 'lodash-es/isEmpty.js'; import omit from 'lodash-es/omit.js'; +import type { Account, Character } from '../../common/account/types.js'; import { equalsIgnoreCase } from '../../common/string/equals-ignore-case.js'; import type { Maybe } from '../../common/types.js'; import type { StoreService } from '../store/types.js'; import { logger } from './logger.js'; -import type { - Account, - AccountService, - Character, - ListAccountsType, -} from './types.js'; +import type { AccountService, ListAccountsType } from './types.js'; export class AccountServiceImpl implements AccountService { private storeService: StoreService; diff --git a/electron/main/account/types.ts b/electron/main/account/types.ts index df034201..ce5e1dad 100644 --- a/electron/main/account/types.ts +++ b/electron/main/account/types.ts @@ -1,19 +1,9 @@ +import type { Account, Character } from '../../common/account/types.js'; import type { Maybe } from '../../common/types.js'; export type ListAccountsType = Array; export type ListAccountsItemType = Omit; -export interface Account { - accountName: string; - accountPassword: string; -} - -export interface Character { - accountName: string; - characterName: string; - gameCode: string; -} - /** * A data-store abstraction over managing local accounts and characters. * Does not interact with the play.net service.