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

Method write

libs/@local/codegen/src/typescript.rs:86–88  ·  view source on GitHub ↗

Generates TypeScript code from the provided type collection.

(self)

Source from the content-addressed store, hash-verified

84
85 /// Generates TypeScript code from the provided type collection.
86 pub fn write(self) -> String {
87 Codegen::new().build(&self.program).code
88 }
89
90 /// Adds a type declaration to the program body by its `TypeId`.
91 ///

Callers 14

streamFrameFunction · 0.45
streamCommentFunction · 0.45
promptHiddenFunction · 0.45
onDataFunction · 0.45
logEmailMethod · 0.45
parseArgsFunction · 0.45
install_debug_hookMethod · 0.45
resolve_arrayFunction · 0.45
runFunction · 0.45
scriptFunction · 0.45
scriptFunction · 0.45

Calls 1

buildMethod · 0.45

Tested by 2

indexFunction · 0.36
test_single_typeFunction · 0.36