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

x/ayonli_jsext/class/decorators.ts

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/class/decorators.ts";

Decorator functions that can be used to validate the input and output of class methods and guarantee type safety at runtime, include param, returns and throws, based on Zod.

Functions

A decorator that restrains the input arguments of the method at runtime, based on Zod.

A decorator that restrains the return value of the method at runtime, based on Zod.

A decorator that restrains the thrown value of the method at runtime, based on Zod.