MCPcopy Index your code
hub / github.com/github/copilot-sdk / experimentalDefinitionNames

Function experimentalDefinitionNames

scripts/codegen/typescript.ts:133–143  ·  view source on GitHub ↗
(definitions: DefinitionCollections)

Source from the content-addressed store, hash-verified

131}
132
133function experimentalDefinitionNames(definitions: DefinitionCollections): Set<string> {
134 const names = new Set<string>();
135 for (const defs of [definitions.definitions, definitions.$defs]) {
136 for (const [name, def] of Object.entries(defs ?? {})) {
137 if (typeof def === "object" && def !== null && isSchemaExperimental(def as JSONSchema7)) {
138 names.add(name);
139 }
140 }
141 }
142 return names;
143}
144
145function annotateTypeScriptTypes(code: string, typeNames: Iterable<string>, annotation: string): string {
146 let annotated = code;

Callers 2

generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85

Calls 2

isSchemaExperimentalFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…