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

Function isTSModuleBlock

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

Source from the content-addressed store, hash-verified

3295 opts?: Opts | null,
3296): node is t.TSModuleBlock & Opts;
3297export function isTSModuleBlock<Opts extends Options<t.TSModuleBlock>>(
3298 node: t.Node | null | undefined,
3299 opts?: Opts | null,
3300): boolean {
3301 return isType<t.TSModuleBlock>("TSModuleBlock", node, opts);
3302}
3303export function isTSImportType(
3304 node: t.Node | null | undefined,
3305): node is t.TSImportType;

Callers

nothing calls this directly

Calls 1

isTypeFunction · 0.50

Tested by

no test coverage detected