Skip to main content

Built and signed on GitHub Actions

🏷️ Collection of TypeScript types.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 weeks ago (0.3.3)
type alias AwaitableEffect

Awaitable effect function.

This function returns a Promise with a void value which means is not doing a data transformation, but instead running some kind of async side-effect.

Examples

Example 1

const awaitableEffect = (input => Promise.resolve(console.log(input))) satisfies AwaitableEffect<[input: number]>;

Type Parameters

Arguments extends ReadonlyArray

Tuple of arguments.

Definition

Arguments extends readonly [] ? () => Awaitable<void> : (..._: Arguments) => Awaitable<void>

Add Package

deno add jsr:@coven/types

Import symbol

import { type AwaitableEffect } from "@coven/types";

---- OR ----

Import directly with a jsr specifier

import { type AwaitableEffect } from "jsr:@coven/types";

Add Package

npx jsr add @coven/types

Import symbol

import { type AwaitableEffect } from "@coven/types";

Add Package

yarn dlx jsr add @coven/types

Import symbol

import { type AwaitableEffect } from "@coven/types";

Add Package

pnpm dlx jsr add @coven/types

Import symbol

import { type AwaitableEffect } from "@coven/types";

Add Package

bunx jsr add @coven/types

Import symbol

import { type AwaitableEffect } from "@coven/types";