MCPcopy Create free account
hub / github.com/babel/babel / isModuleDeclaration

Function isModuleDeclaration

packages/babel-types/src/validators/generated/index.ts:5268–5274  ·  view source on GitHub ↗
(
  node: t.Node | null | undefined,
  opts?: Opts | null,
)

Source from the content-addressed store, hash-verified

5266 * @deprecated Use `isImportOrExportDeclaration`
5267 */
5268export function isModuleDeclaration<Opts extends Options<t.ModuleDeclaration>>(
5269 node: t.Node | null | undefined,
5270 opts?: Opts | null,
5271): node is t.ImportOrExportDeclaration & Opts {
5272 deprecationWarning("isModuleDeclaration", "isImportOrExportDeclaration");
5273 return isImportOrExportDeclaration(node, opts);
5274}

Callers

nothing calls this directly

Calls 2

deprecationWarningFunction · 0.85

Tested by

no test coverage detected