(result: unknown)
| 181 | // any thenable, since a Promise from another realm, or a library's own, isn't |
| 182 | // an instance of this realm's Promise |
| 183 | const isThenable = (result: unknown): result is PromiseLike<unknown> => |
| 184 | typeof result === "object" && |
| 185 | result !== null && |
| 186 | "then" in result && |
| 187 | typeof result.then === "function" |
| 188 | |
| 189 | const parseForeignRoot = (def: object, ctx: BaseParseContext): BaseRoot => |
| 190 | isStandardSchema(def) ? |