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

Function importDefault

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

Source from the content-addressed store, hash-verified

231 * @since 4.1.5
232 */
233export function importDefault(
234 module: string,
235 local: string,
236 options?: { readonly typeOnly?: boolean | undefined }
237): Binding {
238 return imported({
239 module,
240 local,
241 kind: "Default",
242 imported: "default",
243 typeOnly: options?.typeOnly === true,
244 attributes: ""
245 })
246}
247
248/**
249 * Combines source text and bindings without resolving their names.

Callers 1

Codegen.test.tsFile · 0.90

Calls 1

importedFunction · 0.85

Tested by

no test coverage detected