(self: S)
| 2540 | * @since 3.10.0 |
| 2541 | */ |
| 2542 | export const optional = <S extends Schema.All>(self: S): optional<S> => { |
| 2543 | const ast = self.ast === AST.undefinedKeyword || self.ast === AST.neverKeyword |
| 2544 | ? AST.undefinedKeyword |
| 2545 | : UndefinedOr(self).ast |
| 2546 | return new PropertySignatureWithFromImpl(new PropertySignatureDeclaration(ast, true, true, {}, undefined), self) |
| 2547 | } |
| 2548 | |
| 2549 | /** |
| 2550 | * @category PropertySignature |
nothing calls this directly
no test coverage detected