Skip to content

Commit

Permalink
[PBO] - fix the typyings for Right and compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Borak committed Apr 15, 2020
1 parent d629cbc commit ae5f248
Show file tree
Hide file tree
Showing 7 changed files with 768 additions and 10 deletions.
760 changes: 759 additions & 1 deletion lib/lib.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/package.json
@@ -1,6 +1,6 @@
{
"name": "@petrborak/functors",
"version": "9.1.0",
"version": "9.2.0",
"description": "Functors for functional programming",
"main": "lib.bundle.js",
"types": "index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions lib/src/Right/index.d.ts
Expand Up @@ -4,8 +4,8 @@ import { ApplicativeContainer } from "../Applicative"
export declare class Right {
constructor(x: any)
private $value: any
public isLeft(): false
public isRight(): true
public get isLeft(): false
public get isRight(): true
public map(fn: (x: any) => any): Right
public ap(f: Functor<any>): ApplicativeContainer<any>
public chain(fn: (x: any) => any): any
Expand Down
2 changes: 1 addition & 1 deletion lib/src/helpers/either.d.ts
@@ -1 +1 @@
export declare function either(x: any, y: any, z: any): any
export declare function either(x: any): (y: any) => (z: any) => any
4 changes: 2 additions & 2 deletions lib/webpack.config.js
Expand Up @@ -2,9 +2,9 @@ const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');

module.exports = {
mode: "production",
mode: "development",
optimization: {
minimize: true
minimize: false
},
entry: {
lib: './index.js',
Expand Down
4 changes: 2 additions & 2 deletions src/Right/index.d.ts
Expand Up @@ -4,8 +4,8 @@ import { ApplicativeContainer } from "../Applicative"
export declare class Right {
constructor(x: any)
private $value: any
public get isLeft(): false
public get isRight(): true
public isLeft: false
public isRight: true
public map(fn: (x: any) => any): Right
public ap(f: Functor<any>): ApplicativeContainer<any>
public chain(fn: (x: any) => any): any
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/compose.d.ts
@@ -1 +1 @@
export declare function compose(...x: any): (...x: any) => any
export declare function compose(...x: any[]): (...x: any[]) => any

0 comments on commit ae5f248

Please sign in to comment.