Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tcomb-kfr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcomb-kfr

tcomb type definitions / combinators for kefir frp library

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

tcomb-kfr

tcomb type definitions and combinators for kefir frp library.

Installation

npm install tcomb-kfr

Usage

T = require 'tcomb-kfr'
K = require 'kefir'

User = T.struct
  name: T.String
  email: T.String
, 'User'

Selector = T.func [User], T.Any, 'Selector'

select = T.func [T.obs(User), Selector], T.prop(T.Any), 'select'
.of (obs, selector) ->
  obs.map(selector).skipDuplicates().toProperty()

userProp = K.constant User name: 'nl0', email: 'nl0@example.com'
nameProp = select uProp, ({name}) -> name

API

The following types

  • Observable
  • Stream
  • Property

and combinators

  • observable(type) (aliased as obs)
  • stream(type)
  • property(type) (aliased as prop)

have been added to the tcomb namespace.

Keywords

FAQs

Package last updated on 14 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc