Skip to content

Commit

Permalink
doc: add api-docs and website documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nimatrueway committed Sep 29, 2024
1 parent 612e396 commit 25eabf2
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 148 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ final class TransformerInto[From, To, Overrides <: TransformerOverrides, Flags <
)(using IsFunction.Of[Ctor, To]): TransformerInto[From, To, ? <: TransformerOverrides, Flags] =
${ TransformerIntoMacros.withConstructorImpl('this, 'f) }

/** Require that all fields of the source object except fields mentioned in `selectorFrom` are used in the
* transformation. and fail compilation otherwise.
*
* @param selectorFrom
* exception fields that are not required to be used in the transformation
* @return
*/
transparent inline def requireSourceFieldsUsedExcept(
inline selectorFrom: From => Any*
): TransformerInto[From, To, ? <: TransformerOverrides, Flags] =
Expand Down
Loading

0 comments on commit 25eabf2

Please sign in to comment.