MCPcopy Create free account
hub / github.com/anomalyco/opencode / identifierPart

Function identifierPart

packages/httpapi-codegen/src/index.ts:548–554  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

546}
547
548function identifierPart(value: string) {
549 return value
550 .split(/[^A-Za-z0-9]+/)
551 .filter(Boolean)
552 .map((part) => `${part[0]?.toUpperCase() ?? ""}${part.slice(1)}`)
553 .join("")
554}
555
556function structuralType(schema: Schema.Top) {
557 const document = SchemaRepresentation.toCodeDocument(SchemaRepresentation.fromASTs([schema.ast]))

Callers 1

promiseTypePrefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected