MCPcopy Create free account
hub / github.com/NetEase/tango / addImportDeclaration

Method addImportDeclaration

packages/core/src/models/module.ts:56–59  ·  view source on GitHub ↗
(source: string, specifiers: IImportSpecifierData[])

Source from the content-addressed store, hash-verified

54 }
55
56 addImportDeclaration(source: string, specifiers: IImportSpecifierData[]) {
57 this.ast = addImportDeclaration(this.ast, source, specifiers);
58 return this;
59 }
60
61 updateImportDeclaration(source: string, specifiers: IImportSpecifierData[]) {
62 this.ast = updateImportDeclaration(this.ast, source, specifiers);

Callers 1

addServiceFileMethod · 0.80

Calls 1

addImportDeclarationFunction · 0.90

Tested by

no test coverage detected