@konker.dev/effect-ts-prelude
Version:
Prelude for Effect-ts
21 lines (20 loc) • 1.15 kB
TypeScript
export * from 'effect';
export * as Schema from '@effect/schema/Schema';
export * as TreeFormatter from '@effect/schema/TreeFormatter';
export * as ParseResult from '@effect/schema/ParseResult';
import type { LazyArg } from 'effect/Function';
export { LazyArg } from 'effect/Function';
export type II = <R>(fe: LazyArg<R>) => R;
export declare const ii: II;
export declare function toError(x: unknown): Error;
export declare function isDefined<T>(x: T | undefined): x is T;
export declare const ArrayUtils: {
map: <A, B>(f: (a: A, i: number) => B) => (as: ReadonlyArray<A>) => ReadonlyArray<B>;
filter: <A>(f: (a: A, i: number) => boolean) => (as: ReadonlyArray<A>) => ReadonlyArray<A>;
filterUndefined: <A>(as: ReadonlyArray<A | undefined>) => ReadonlyArray<A>;
foldl: <A, B>(f: (acc: B, val: A, i: number) => B, b: B) => (as: ReadonlyArray<A>) => B;
foldr: <A, B>(f: (acc: B, val: A, i: number) => B, b: B) => (as: ReadonlyArray<A>) => B;
join: <A>(sep?: string) => (as: ReadonlyArray<A>) => string;
toSorted: <A>(as: ReadonlyArray<A>) => ReadonlyArray<A>;
toReversed: <A>(as: ReadonlyArray<A>) => ReadonlyArray<A>;
};