12 Matching Annotations
  1. Aug 2020
  2. Jul 2020
  3. Nov 2019
    1. // require('hammerjs') when in a browser. This is safe because Hammer is only // invoked in componentDidMount, which is not executed on the server. var Hammer = (typeof window !== 'undefined') ? require('hammerjs') : undefined
  4. Oct 2019
    1. type FindByTag<Union, Tag> = Union extends { tag: Tag } ? Union : never; function cast<A extends Foo["tag"]>(foo: Foo, expectedTag: A): FindByTag<Foo, A> { if (foo.tag !== expectedTag) throw Error(`expected tag ${expectedTag} but was ${foo.tag}`) return foo as FindByTag<Foo, A>; }
  5. Sep 2019
  6. Oct 2015
  7. Sep 2013
    1. it is plain that the more we are under these conditions the more easily we are stirred.

      It's conditional, emotions must be gauged by the speaker and they must understand the context