MCPcopy
hub / github.com/vercel/next.js / isStaticImport

Function isStaticImport

packages/next/src/client/legacy/image.tsx:300–306  ·  view source on GitHub ↗
(src: string | StaticImport)

Source from the content-addressed store, hash-verified

298}
299
300function isStaticImport(src: string | StaticImport): src is StaticImport {
301 return (
302 typeof src === 'object' &&
303 (isStaticRequire(src as StaticImport) ||
304 isStaticImageData(src as StaticImport))
305 )
306}
307
308export type ImageProps = Omit<
309 JSX.IntrinsicElements['img'],

Callers 1

ImageFunction · 0.70

Calls 2

isStaticRequireFunction · 0.70
isStaticImageDataFunction · 0.70

Tested by

no test coverage detected