Skip to content

Commit

Permalink
fix(gh-pages): add gh pages (#52)
Browse files Browse the repository at this point in the history
* fix(version): update index for version when it changed

* fix(gh-pages): setup docs for gh-pages
  • Loading branch information
dankreiger committed Jan 12, 2022
1 parent ecc4cdf commit 6ea2d91
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ if [ "$CURRENT_BRANCH" = "main" ]; then
fi
npm run build
npm run docs &&
npx lint-staged
npx lint-staged
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/Either/Left/Left.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/** @since 0.0.0 */
import type { I_Left } from './interfaces';

/** @since 0.0.0 */
/**
* @since 0.0.0
* @category Either
*/
export const Left = /*#__PURE__*/ <T>(x: T): I_Left<T> => ({
_meta: { _tag: 'Left', _value: x },
chain: (_) => Left(x),
Expand Down
6 changes: 5 additions & 1 deletion src/Either/Right/Right.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/** @since 0.0.0 */
import type { I_Right } from '.';

/** @since 0.0.0 */
/**
* @since 0.0.0
* @category Either
*
*/
export const Right = /*#__PURE__*/ <T>(x: T): I_Right<T> => ({
_meta: { _tag: 'Right', _value: x },
chain: (f) => f(x),
Expand Down
2 changes: 2 additions & 0 deletions src/Either/dev/inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type { I_Inspect } from './interfaces';

/**
* @since 1.0.6
* @category Either
* @hidden
*/
export function inspect<T extends 'Left' | 'Right', U>(
Type: T,
Expand Down
1 change: 1 addition & 0 deletions src/Either/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ const of = Right;

/**
* @since 1.0.0
* @category Either
*/
export { fromNullable, fromPredicate, tryCatch, of };
1 change: 1 addition & 0 deletions src/Either/transformers/fromNullable/fromNullable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { I_Right } from '../../Right';
import { Right } from '../../Right';

/**
* @category Either
* @since 1.0.7
* @description
* Given type T:
Expand Down
1 change: 1 addition & 0 deletions src/Either/transformers/fromPredicate/fromPredicate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { I_Right, Right } from '../../Right';

type T_Predicate<T> = (value: T) => boolean;
/**
* @category Either
* @since 1.0.12
* @description
* Given type T_Predicate<T>:
Expand Down
1 change: 1 addition & 0 deletions src/Either/transformers/tryCatch/tryCatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { I_Right } from '../../Right';
import { Right } from '../../Right';

/**
* @category Either
* @since 1.0.7
* @description
* Given the type () => T:
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/** @since 0.0.0 */
/** @since 1.0.13 */
export * from './Either';

0 comments on commit 6ea2d91

Please sign in to comment.