UNPKG

@tsclass/tsclass

Version:

Provides TypeScript definitions for various business, financial, networking, content, and other common classes.

6 lines (3 loc) 213 B
type SecondArgument<T> = T extends (arg1: any, arg2: infer P, ...args: any[]) => any ? P : never; type ValueType<T> = T extends { [key: string]: infer U } ? U : never; export type { SecondArgument, ValueType };