()
| 5762 | * @internal |
| 5763 | */ |
| 5764 | export function linkDecoding<T>(): <To extends Constraint>( |
| 5765 | to: To, |
| 5766 | decode: SchemaGetter.Getter<T, NoInfer<To["Type"]>> |
| 5767 | ) => SchemaAST.Link { |
| 5768 | return <To extends Constraint>( |
| 5769 | to: To, |
| 5770 | decode: SchemaGetter.Getter<T, NoInfer<To["Type"]>> |
| 5771 | ): SchemaAST.Link => link<T>()(to, { decode, encode: SchemaGetter.forbiddenEncoding }) |
| 5772 | } |
| 5773 | |
| 5774 | /** @internal */ |
| 5775 | export const TrueLiterals = Literals(["true", "yes", "on", "1", "y"]) |
no test coverage detected