Skip to main content
Home

@ton1c/fp@0.1.3

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
11%
Published
4 months ago (0.1.3)
function errAsync
errAsync<
T = never,
E extends string = string,
>
(err: E): ResultAsync<T, E>

Type Parameters

T = never
E extends string = string

Parameters

err: E

Return Type

errAsync<
T = never,
E = unknown,
>
(err: E): ResultAsync<T, E>

Type Parameters

T = never
E = unknown

Parameters

err: E

Return Type

errAsync<
T = never,
E extends void = void,
>
(err: void): ResultAsync<T, void>

Type Parameters

T = never
E extends void = void

Parameters

err: void

Return Type

ResultAsync<T, void>

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@ton1c/fp

Import symbol

import { errAsync } from "@ton1c/fp";
or

Import directly with a jsr specifier

import { errAsync } from "jsr:@ton1c/fp";

Add Package

pnpm i jsr:@ton1c/fp
or (using pnpm 10.8 or older)
pnpm dlx jsr add @ton1c/fp

Import symbol

import { errAsync } from "@ton1c/fp";

Add Package

yarn add jsr:@ton1c/fp
or (using Yarn 4.8 or older)
yarn dlx jsr add @ton1c/fp

Import symbol

import { errAsync } from "@ton1c/fp";

Add Package

vlt install jsr:@ton1c/fp

Import symbol

import { errAsync } from "@ton1c/fp";

Add Package

npx jsr add @ton1c/fp

Import symbol

import { errAsync } from "@ton1c/fp";

Add Package

bunx jsr add @ton1c/fp

Import symbol

import { errAsync } from "@ton1c/fp";