Extracts the target api name from a lookup or parent-child target.
Type definition
export type TargetApiName<TTarget> = TTarget extends {
readonly apiName: infer TApiName extends string;
} ? TApiName : never;Use with AI:Rippling AI ChatGPT Claude Cursor
Extracts the target api name from a lookup or parent-child target.
export type TargetApiName<TTarget> = TTarget extends {
readonly apiName: infer TApiName extends string;
} ? TApiName : never;