Skip to content

Commit

Permalink
rewrite es6 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Jan 9, 2020
1 parent 29ee2a7 commit f35c926
Show file tree
Hide file tree
Showing 14 changed files with 765 additions and 253 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 120
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
**Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.

# 0.6.3

- **Bug Fix**
- rewrite es6 imports (@gcanti)

# 0.6.2

- **New Feature**
Expand Down
160 changes: 159 additions & 1 deletion docs/modules/Observable.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 2
parent: Modules
---

# Observable overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand All @@ -12,6 +16,20 @@ parent: Modules
- [URI (constant)](#uri-constant)
- [observable (constant)](#observable-constant)
- [getMonoid (function)](#getmonoid-function)
- [alt (export)](#alt-export)
- [ap (export)](#ap-export)
- [apFirst (export)](#apfirst-export)
- [apSecond (export)](#apsecond-export)
- [chain (export)](#chain-export)
- [chainFirst (export)](#chainfirst-export)
- [compact (export)](#compact-export)
- [filter (export)](#filter-export)
- [filterMap (export)](#filtermap-export)
- [flatten (export)](#flatten-export)
- [map (export)](#map-export)
- [partition (export)](#partition-export)
- [partitionMap (export)](#partitionmap-export)
- [separate (export)](#separate-export)

---

Expand All @@ -30,7 +48,7 @@ Added in v0.6.0
**Signature**
```ts
export const URI = ...
export const URI: "Observable" = ...
```

Added in v0.6.0
Expand All @@ -54,3 +72,143 @@ export function getMonoid<A = never>(): Monoid<Observable<A>> { ... }
```

Added in v0.6.0

# alt (export)

**Signature**

```ts
<A>(that: () => Observable<A>) => (fa: Observable<A>) => Observable<A>
```

Added in v0.6.0

# ap (export)

**Signature**

```ts
<A>(fa: Observable<A>) => <B>(fab: Observable<(a: A) => B>) => Observable<B>
```

Added in v0.6.0

# apFirst (export)

**Signature**

```ts
<B>(fb: Observable<B>) => <A>(fa: Observable<A>) => Observable<A>
```

Added in v0.6.0

# apSecond (export)

**Signature**

```ts
<B>(fb: Observable<B>) => <A>(fa: Observable<A>) => Observable<B>
```

Added in v0.6.0

# chain (export)

**Signature**

```ts
<A, B>(f: (a: A) => Observable<B>) => (ma: Observable<A>) => Observable<B>
```

Added in v0.6.0

# chainFirst (export)

**Signature**

```ts
<A, B>(f: (a: A) => Observable<B>) => (ma: Observable<A>) => Observable<A>
```

Added in v0.6.0

# compact (export)

**Signature**

```ts
<A>(fa: Observable<O.Option<A>>) => Observable<A>
```

Added in v0.6.0

# filter (export)

**Signature**

```ts
{ <A, B>(refinement: Refinement<A, B>): (fa: Observable<A>) => Observable<B>; <A>(predicate: Predicate<A>): (fa: Observable<A>) => Observable<A>; }
```

Added in v0.6.0

# filterMap (export)

**Signature**

```ts
<A, B>(f: (a: A) => O.Option<B>) => (fa: Observable<A>) => Observable<B>
```

Added in v0.6.0

# flatten (export)

**Signature**

```ts
<A>(mma: Observable<Observable<A>>) => Observable<A>
```

Added in v0.6.0

# map (export)

**Signature**

```ts
<A, B>(f: (a: A) => B) => (fa: Observable<A>) => Observable<B>
```

Added in v0.6.0

# partition (export)

**Signature**

```ts
{ <A, B>(refinement: Refinement<A, B>): (fa: Observable<A>) => Separated<Observable<A>, Observable<B>>; <A>(predicate: Predicate<A>): (fa: Observable<A>) => Separated<Observable<A>, Observable<A>>; }
```

Added in v0.6.0

# partitionMap (export)

**Signature**

```ts
<A, B, C>(f: (a: A) => E.Either<B, C>) => (fa: Observable<A>) => Separated<Observable<B>, Observable<C>>
```

Added in v0.6.0

# separate (export)

**Signature**

```ts
<A, B>(fa: Observable<E.Either<A, B>>) => Separated<Observable<A>, Observable<B>>
```

Added in v0.6.0
8 changes: 7 additions & 1 deletion docs/modules/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 1
parent: Modules
---

# index overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand All @@ -17,5 +21,7 @@ parent: Modules
**Signature**

```ts
export { observable }
typeof observable
```

Added in v0.6.0
Loading

0 comments on commit f35c926

Please sign in to comment.