I hereby claim:
- I am sergeysova on github.
- I am sergeysova (https://keybase.io/sergeysova) on keybase.
- I have a public key whose fingerprint is 85E4 8503 A975 DC9E 0103 794A 7234 B5F9 938F CAC0
To claim this, I am signing this object:
// TODO: Stash under a symbol key once TS compiler bug is fixed | |
interface TypeRecord<T, U, V> { | |
" _emitterType"?: T; | |
" _eventsType"?: U; | |
" _emitType"?: V; | |
} | |
type InnerEEMethodReturnType<T, TValue, FValue> = T extends ( | |
...args: any[] | |
) => any |
I hereby claim:
To claim this, I am signing this object:
import { createEffect, createEvent, createStore, merge } from "effector" | |
import nanoid from "nanoid" | |
import { parseObject, request } from "jsonrpc-lite" | |
const wsURL = `ws://localhost:${process.env.WS_PORT}` | |
const awaitingMap = new Map() | |
let socket | |
const open = createEvent() |
// routes/orders.js | |
import { Router } from "FRAMEWORK"; | |
import { orders, OrderScheme } from "../controllers"; | |
import { access } from "../lib/rbac"; | |
import { validate } from '../lib/validators'; | |
export const router = new Router("/orders"); |
.button { | |
border: 1px solid #555; | |
text-align: center; | |
padding: 0 12px; | |
color: #ddd; | |
cursor: pointer; | |
} | |
.button:hover { | |
background: rgba(255, 255, 255, .25) |
import React, { useLayoutEffect, useRef } from 'react' | |
import { useStore } from 'effector-react' | |
import * as effector from 'effector' | |
import { pathOr } from 'ramda' | |
const trackCreateStore = effector.createEvent('trackCreateStore') | |
const trackCreateEvent = effector.createEvent('trackCreateEvent') | |
const trackCreateEffect = effector.createEvent('trackCreateEffect') | |
const trackCreateStoreObject = effector.createEvent('trackCreateStoreObject') |
import * as React from "react"; | |
import { submitMessage } from "./chat"; | |
// Form | |
// Input | |
// SubmitButton | |
// AttachList | |
// NewAttachButtons | |
const Example = () => { |
const names = { | |
AF: "Afghanistan", | |
AX: "Åland Islands", | |
AL: "Albania", | |
DZ: "Algeria", | |
AS: "American Samoa", | |
AD: "Andorra", | |
AO: "Angola", | |
AI: "Anguilla", | |
AQ: "Antarctica", |
Array.prototype.iter = function() { | |
return new ListIter(this); | |
}; | |
class Iter { | |
map(fn) { | |
return new Map(this, fn); | |
} | |
collect() { |
import { fetchStatus } from "@lib/fetch"; | |
import { userApi } from "@feature/users/api"; | |
import { actions } from "./symbiotes"; | |
import * as selectors from "./selectors"; | |
/* | |
userApi.fetchUser() should throw an Error, if server returned object with error | |
*/ | |
/* |