Skip to content
AutoMapper TypeScript
Esc
navigateopen⌘Jpreview

fromValue

Assign a fixed value to one destination member.

forMember(
  (destination) => destination.status,
  fromValue('active'),
);

Objects are assigned as provided; fromValue() does not run them through a nested mapping.

Last updated on July 16, 2026

Was this page helpful?