* Creates a schema that returns a Promise (async validation - not supported).
()
| 93 | * Creates a schema that returns a Promise (async validation - not supported). |
| 94 | */ |
| 95 | function makeAsyncType(): StandardSchemaV1<unknown> { |
| 96 | return { |
| 97 | "~standard": { |
| 98 | version: 1, |
| 99 | vendor: "test", |
| 100 | validate: () => { |
| 101 | return Promise.resolve({ value: "async result" }); |
| 102 | }, |
| 103 | }, |
| 104 | }; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Creates a pass-through schema (no transformation). |
no outgoing calls
no test coverage detected