MCPcopy Create free account
hub / github.com/npm/cli / createDef

Function createDef

workspaces/config/test/index.js:15–15  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

13
14const Definition = require('../lib/definitions/definition.js')
15const createDef = (key, value) => ({ [key]: new Definition(key, { key, ...value }) })
16
17const typeDefs = require('../lib/type-defs.js')
18

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected