Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tsafe/MethodNames.ts

🔩 The missing TypeScript utils
Go to Latest
File
/* eslint-disable @typescript-eslint/no-explicit-any *//* eslint-disable @typescript-eslint/ban-types */
/** https://docs.tsafe.dev/methodnames */export type MethodNames<Api> = NonNullable< { [Key in keyof Api]: Api[Key] extends ((...args: any[]) => unknown) | undefined ? Key : never; }[keyof Api]>;