( isApplicable: (v: any, superJson: SuperJSON) => v is I, annotation: A, transform: (v: I, superJson: SuperJSON) => O, untransform: (v: O, superJson: SuperJSON) => I )
| 37 | export type TypeAnnotation = SimpleTypeAnnotation | CompositeTypeAnnotation; |
| 38 | |
| 39 | function simpleTransformation<I, O, A extends SimpleTypeAnnotation>( |
| 40 | isApplicable: (v: any, superJson: SuperJSON) => v is I, |
| 41 | annotation: A, |
| 42 | transform: (v: I, superJson: SuperJSON) => O, |
| 43 | untransform: (v: O, superJson: SuperJSON) => I |
| 44 | ) { |
| 45 | return { |
| 46 | isApplicable, |
| 47 | annotation, |
| 48 | transform, |
| 49 | untransform, |
| 50 | }; |
| 51 | } |
| 52 | |
| 53 | const simpleRules = [ |
| 54 | simpleTransformation( |
no outgoing calls
no test coverage detected
searching dependent graphs…