MCPcopy Create free account
hub / github.com/Effect-TS/effect / isNoContent

Function isNoContent

packages/effect/src/unstable/httpapi/HttpApiSchema.ts:921–928  ·  view source on GitHub ↗
(ast: SchemaAST.AST)

Source from the content-addressed store, hash-verified

919 * @since 4.0.0
920 */
921export const isNoContent = (ast: SchemaAST.AST): boolean => {
922 if (SchemaAST.isVoid(ast)) return true
923 const encoded = SchemaAST.toEncoded(ast)
924 if (SchemaAST.isVoid(encoded)) return true
925 const target = ast.encoding?.[0].to
926 if (target === undefined) return false
927 return SchemaAST.isVoid(target)
928}
929
930const resolveHttpApiEncoding = SchemaAST.resolveAt<Encoding>("~httpApiEncoding")
931

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected