Skip to content

Commit

Permalink
feat: 🎸 source values could be null
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeevKatz committed Nov 10, 2020
1 parent cfdd138 commit 6e3a2ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface Transformer<S = unknown, T = unknown> {
/**
* Transforms the given source value (`S`) to the target value type (`T`).
*/
toTarget: (sourceValue: S) => T;
toTarget: (sourceValue: S | null) => T;

/**
* Transforms the given target value (`T`) to the source value type (`S`).
Expand Down

0 comments on commit 6e3a2ea

Please sign in to comment.