Skip to content

Instantly share code, notes, and snippets.

View friktor's full-sized avatar

Anton Shramko friktor

View GitHub Profile
{
"name": "Yandex Music",
"short_name": "Yandex Music",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
@friktor
friktor / accounts.ts
Last active July 18, 2019 23:45
Electron lazy IPC function caller to main process, looks like simple async promise function
import { LazyIpcQueue } from "./lazy"
import { Account } from "models"
const _accountsList = new LazyIpcQueue<undefined, Account[]>("ACCOUNTS_LIST")
export const getAccountsList = (): Promise<Account[]> => _accountsList.call(undefined)