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

Function stripOption

scripts/codegen/rust.ts:230–234  ·  view source on GitHub ↗
(typeName: string)

Source from the content-addressed store, hash-verified

228}
229
230function stripOption(typeName: string): string {
231 return typeName.startsWith("Option<") && typeName.endsWith(">")
232 ? typeName.slice("Option<".length, -1)
233 : typeName;
234}
235
236function getUnionVariants(schema: JSONSchema7): JSONSchema7[] | null {
237 if (schema.anyOf) return schema.anyOf as JSONSchema7[];

Callers 1

tryEmitRustUnionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…