I hereby claim:
- I am baetheus on github.
- I am baetheus (https://keybase.io/baetheus) on keybase.
- I have a public key ASCazPD8JqHVme4Inlk1UFORaPUcRKxU-XNuMjjhClrJfwo
To claim this, I am signing this object:
| /** | |
| * maxCountDuringPeriod | |
| */ | |
| export const maxCountDuringPeriod = (count: number, period: number) => (obs: Observable<any>) => { | |
| if (count < 2) { | |
| throw new Error('maxCountDuringPeriod count must be greater than or equal to 2'); | |
| } | |
| if (period < 0) { | |
| throw new Error('maxCountDuringPeriod period must be positive'); |
I hereby claim:
To claim this, I am signing this object:
| export interface InputState<ValueType, MaskType> { | |
| value: ValueType; | |
| mask: MaskType; // TODO Decide on masking implementation | |
| touched: boolean; | |
| invalid: boolean; | |
| focused: boolean; | |
| disabled: boolean; | |
| } | |
| export enum InputEvents { |
| import * as React from 'react'; | |
| import { SFC } from 'react'; | |
| import { useRedux } from '~/store'; | |
| import { currentRoute, Routes } from '~/stores/routing'; | |
| import { Campaign } from './pages/Campaign'; | |
| import { Dashboard } from './pages/Dashboard'; | |
| export interface RouterProps {} |
| /** | |
| * Get Campaigns | |
| */ | |
| export const getCampaigns = contactStrategyActionFactory.async<number, Campaign[], Error>('GET_CAMPAIGNS'); | |
| export const campaignsLens = Lens.fromProp<ContactStrategyStore, 'campaigns'>('campaigns'); | |
| const getCampaignsReducer = reducerFactory(getCampaigns, campaignsLens); | |
| const getCampaignsEpic: Epic = a$ => | |
| a$.pipe( | |
| filterSwitchAsync(getCampaigns, companyId => from(GetCampaigns({ companyId }).then(({ campaigns }) => campaigns))) |
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | |
| // for the documentation about the tasks.json format | |
| "version": "2.0.0", | |
| "tasks": [ | |
| // Run npm start as default build script (cmd + shift + b) | |
| { | |
| "label": "start", | |
| "type": "npm", | |
| "script": "start", |
| import { h, FunctionalComponent, render, options } from 'preact'; | |
| import { handleVnode } from './hooks'; | |
| // Wireup experimental hooks | |
| options.vnode = handleVnode; | |
| import Test from './component'; | |
| export const Main: FunctionalComponent<any> = () => ( |
| import { Pipe, PipeTransform } from '@angular/core'; | |
| import { map } from 'lodash'; | |
| import { tryCatchEither } from '@loda/utils'; | |
| interface MapTransform { | |
| <T, D>(value: T, iteratee: (t: T) => D): D | T; | |
| <T, D>(value: T[], iteratee: (t: T) => D): D[] | T[]; | |
| } |
| import del from 'rollup-plugin-delete'; | |
| import typescript from 'rollup-plugin-typescript'; | |
| import resolve from 'rollup-plugin-node-resolve'; | |
| import commonjs from 'rollup-plugin-commonjs'; | |
| import htmlTemplate from 'rollup-plugin-generate-html-template'; | |
| import copy from 'rollup-plugin-copy'; | |
| import serve from 'rollup-plugin-serve'; | |
| import { terser } from 'rollup-plugin-terser'; | |
| const createHash = () => |
| npm i @nll/{css,rx-fsa} lodash react react-dom redux | |
| npm i -D @nll/schematics-react @types/{lodash,node,react,react-dom,redux} parcel-bundler typescript |