import { isFunction } from "./functionUtils" ; deprecated export function safeInvokeMember < T extends { [ k in K ] ? : ( ) => R ; } , K extends keyof T , R = void > ( obj , key ) ; deprecated export function safeInvokeMember < T extends { [ k in K ] ? : ( a : A ) => R ; } , K extends keyof T , A , R = void > ( obj , key , arg1 ) ; deprecated export function safeInvokeMember < T extends { [ k in K ] ? : ( a : A , b : B ) => R ; } , K extends keyof T , A , B , R = void > ( obj , key , arg1 , arg2 ) ; deprecated export function safeInvokeMember < T extends { [ k in K ] ? : ( a : A , b : B , c : C ) => R ; } , K extends keyof T , A , B , C , R = void > ( obj , key , arg1 , arg2 , arg3 ) ; export function safeInvokeMember < T extends { [ P in K ] ? : Function ; } , K extends keyof T > ( obj , key , ... args ) { if ( obj != null ) { const member = obj [ key ] ; if ( isFunction ( member ) ) { return member ( ... args ) ; } } return undefined ; }