MCPcopy Create free account
hub / github.com/Effect-TS/effect / addImport

Function addImport

packages/effect/src/internal/schema/toCodeDocument.ts:270–274  ·  view source on GitHub ↗
(importDeclaration: string)

Source from the content-addressed store, hash-verified

268 }
269
270 function addImport(importDeclaration: string): void {
271 if (!artifacts.some((artifact) => artifact._tag === "Import" && artifact.importDeclaration === importDeclaration)) {
272 artifacts.push({ _tag: "Import", importDeclaration })
273 }
274 }
275
276 function addSymbol(symbol: symbol): string {
277 const identifier = freshIdentifier("_symbol")

Callers 3

typeBrandsFunction · 0.85
compileCheckFunction · 0.85
onFunction · 0.85

Calls 2

someMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected