(_defaultValue: T)
| 6 | import { StandardSchemaV1 } from "@standard-schema/spec"; |
| 7 | |
| 8 | function makeType<T>(_defaultValue: T): StandardSchemaV1<T> { |
| 9 | return { |
| 10 | "~standard": { |
| 11 | version: 1, |
| 12 | vendor: "codemix", |
| 13 | validate: (value) => { |
| 14 | return { value: value as T }; |
| 15 | }, |
| 16 | }, |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | // Module-level setup |
| 21 | const schema = { |
no outgoing calls
no test coverage detected