Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
lowlighter/libsWorks with
•JSR Score100%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Downloads103/wk
•Published5 months ago (4.0.1)
🗃️ Utility types
🗃️ Utility types
📑 Examples
import type { Arg, Arrayable, Nullable, Promisable } from "./types.ts" function foo(_: unknown, args: Arrayable<string>): Promisable<Nullable<string>> { return Promise.resolve(null) } // Get the type of arguments[1] of `foo` function type args = Arg<typeof foo, 1>
✨ Features
AsyncFunction,GeneratorFunctionandAsyncGeneratorFunctionconstructors.- Addtional useful type utilites.
📜 License
Copyright (c) Simon Lecoq <@lowlighter>. (MIT License) https://github.com/lowlighter/libs/blob/main/LICENSE
Built and signed on
GitHub Actions
Add Package
deno add jsr:@libs/typing
Import symbol
import * as typing from "@libs/typing";
Import directly with a jsr specifier
import * as typing from "jsr:@libs/typing";