Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/mod.ts>fp.decorate

An ecosystem delivering practices, philosophy and portability.
Go to Latest
variable fp.decorate
import { fp } from "https://deno.land/x/hex@0.5.15/src/mod.ts";
const { decorate } = fp;

type

<T1, T2>(target: Decorated<T1, T2>, decorator: (...args: readonly [Decorated<T1, T2>, ...T1[]]) => T2) => unknown