MCPcopy Create free account
hub / github.com/apache/fory / registerExternal

Method registerExternal

javascript/packages/core/lib/gen/router.ts:41–44  ·  view source on GitHub ↗
(object: { name: string })

Source from the content-addressed store, hash-verified

39 }
40
41 static registerExternal(object: { name: string }) {
42 CodegenRegistry.checkExists(object.name);
43 this.external.set(object.name, object);
44 }
45
46 static newGeneratorByTypeInfo(typeInfo: TypeInfo, builder: CodecBuilder, scope: Scope) {
47 const constructor = CodegenRegistry.get(typeInfo.typeId);

Callers 6

collection.tsFile · 0.80
index.tsFile · 0.80
any.tsFile · 0.80
typedArray.tsFile · 0.80
map.tsFile · 0.80
decimal.tsFile · 0.80

Calls 2

checkExistsMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected