* Creates a pass-through schema (no transformation).
()
| 108 | * Creates a pass-through schema (no transformation). |
| 109 | */ |
| 110 | function makePassThroughType<T>(): StandardSchemaV1<T> { |
| 111 | return { |
| 112 | "~standard": { |
| 113 | version: 1, |
| 114 | vendor: "test", |
| 115 | validate: (value) => ({ value: value as T }), |
| 116 | }, |
| 117 | }; |
| 118 | } |
| 119 | |
| 120 | // Schema with transforming types |
| 121 | const transformingSchema = { |
no outgoing calls
no test coverage detected