Skip to content

Instantly share code, notes, and snippets.

@sankemax
Created April 19, 2020 19:48
Show Gist options
  • Save sankemax/08ab1deff47cfe5bee2f00bfc2b538bf to your computer and use it in GitHub Desktop.
Save sankemax/08ab1deff47cfe5bee2f00bfc2b538bf to your computer and use it in GitHub Desktop.
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