3.1.0 • Published 10 months ago

@lowlighter/typing v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

🧰 Utility types

JSR JSR Score NPM Coverage

📑 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, GeneratorFunction and AsyncGeneratorFunction constructors.
  • Addtional useful type utilites.

📜 License

Copyright (c) Simon Lecoq <@lowlighter>. (MIT License)
https://github.com/lowlighter/libs/blob/main/LICENSE
3.1.0

10 months ago

3.0.0

10 months ago

2.9.0

11 months ago

2.8.2

11 months ago

2.8.1

12 months ago

2.8.0

1 year ago

2.7.0

1 year ago

2.6.1

1 year ago

2.6.0

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago