MCPcopy Create free account
hub / github.com/hashintel/hash / preprocess

Function preprocess

libs/@blockprotocol/graph/src/codegen/preprocess.ts:8–14  ·  view source on GitHub ↗
(context: PreprocessContext)

Source from the content-addressed store, hash-verified

6import type { PreprocessContext } from "./context.js";
7
8export const preprocess = (context: PreprocessContext) => {
9 rewriteTypeTitles(context);
10 removeEmptyAllOfs(context);
11 removeRedundantDataTypeInheritance(context);
12 identifyLinkEntityTypes(context);
13 /* @todo - if properties are empty, remove the `allOf` */
14};

Callers 1

codegenFunction · 0.85

Calls 4

rewriteTypeTitlesFunction · 0.85
removeEmptyAllOfsFunction · 0.85
identifyLinkEntityTypesFunction · 0.85

Tested by

no test coverage detected