jshemas / openGraphScraper

Node.js scraper service for Open Graph Info and More!
MIT License
643 stars 102 forks source link

Type error in index.ts #172

Closed bstyles3 closed 1 year ago

bstyles3 commented 1 year ago

When type check runs it throws on index.ts: This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'

import {
  OpenGraphScraperOptions,
  OgObject,
} from './lib/types';

May benefit from being

import type {
  OpenGraphScraperOptions,
  OgObject,
} from './lib/types';
jshemas commented 1 year ago

Hello. This should be fixed in open-graph-scraper@5.2.1