tsafe
GitHub
  • 👋What is tsafe?
  • ⚙️How to import
  • assert
  • Equals
  • id
  • is
  • objectKeys
  • exclude
  • isAmong
  • symToStr
  • ReturnType
  • Parameters
  • Param0
  • typeGuard
  • capitalize/uncapitalize
  • MethodNames
  • isPromiseLike
  • flip
  • objectEntries
  • objectFromEntries
  • UnionToIntersection
  • 🚧withDefaults
  • 📉UnpackPromise
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Parameters

PreviousReturnTypeNextParam0

Last updated 6 months ago

Was this helpful?

Same as but works also with nullable function type. Analogous to .

import type { Parameters } from "tsafe/Parameters";

declare const myFunction: (a: string) => void | null;

type args = Parameters<typeof myFunction>;
// ^ args is [a: string]
the builtin-type
ReturnType