Created
April 19, 2020 19:48
-
-
Save sankemax/08ab1deff47cfe5bee2f00bfc2b538bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Transform = { | |
source: string, | |
target: { | |
path: string, | |
priority?: number, | |
defaultValue?: any, | |
conditionalValue?: { | |
targetPathCondition: string, | |
value: any | |
} | |
predefinedTransformations?: PredefinedTransformation[] | |
} | |
} | |
interface PredefinedTransformation { | |
transformationArgs?: any | |
transformation: 'toUpperCase' | |
| 'toLowerCase' | |
| 'titleCase' | |
| 'toDate' | |
| 'stringToArray' | |
| 'arrayToString' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment