(
from: AST,
transformation:
| SchemaTransformation.Transformation<any, any, any, any>
| SchemaTransformation.Middleware<any, any, any, any, any, any>,
to: A
)
| 4491 | } |
| 4492 | |
| 4493 | function appendTransformation<A extends AST>( |
| 4494 | from: AST, |
| 4495 | transformation: |
| 4496 | | SchemaTransformation.Transformation<any, any, any, any> |
| 4497 | | SchemaTransformation.Middleware<any, any, any, any, any, any>, |
| 4498 | to: A |
| 4499 | ): A { |
| 4500 | const link = new Link(from, transformation) |
| 4501 | return replaceEncoding(to, to.encoding ? [...to.encoding, link] : [link]) |
| 4502 | } |
| 4503 | |
| 4504 | /** |
| 4505 | * Maps over the array but will return the original array if no changes occur. |
no test coverage detected