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

Function importNamespace

packages/effect/src/Codegen.ts:189–202  ·  view source on GitHub ↗
(
  module: string,
  local: string,
  options?: { readonly typeOnly?: boolean | undefined }
)

Source from the content-addressed store, hash-verified

187 * @since 4.1.5
188 */
189export function importNamespace(
190 module: string,
191 local: string,
192 options?: { readonly typeOnly?: boolean | undefined }
193): Binding {
194 return imported({
195 module,
196 local,
197 kind: "Namespace",
198 imported: "*",
199 typeOnly: options?.typeOnly === true,
200 attributes: ""
201 })
202}
203
204/**
205 * Creates a named import binding that can be shared across generated modules.

Callers 2

Codegen.test.tsFile · 0.90

Calls 1

importedFunction · 0.85

Tested by

no test coverage detected