MCPcopy Create free account
hub / github.com/effect-app/libs / modelSchemaPrefix

Function modelSchemaPrefix

packages/eslint-codegen-model/src/cli.ts:207–210  ·  view source on GitHub ↗
(classText: string)

Source from the content-addressed store, hash-verified

205}
206
207function modelSchemaPrefix(classText: string): string {
208 const match = /\bextends\s+((?:[A-Za-z_$][\w$]*\.)?)(?:Opaque|OpaqueType|OpaqueShape)\s*</.exec(classText)
209 return match?.[1] ?? "S."
210}
211
212function schemaName(prefix: string): string {
213 return prefix.endsWith(".") ? prefix.slice(0, -1) : prefix

Callers 1

syncFacadeFunction · 0.85

Calls 1

execMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…