UNPKG

@np-dev/youtubei-js

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

14 lines 537 B
import { YTNode } from '../helpers.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; class DidYouMean extends YTNode { constructor(data) { super(); this.text = new Text(data.didYouMean).toString(); this.corrected_query = new Text(data.correctedQuery); this.endpoint = new NavigationEndpoint(data.navigationEndpoint || data.correctedQueryEndpoint); } } DidYouMean.type = 'DidYouMean'; export default DidYouMean; //# sourceMappingURL=DidYouMean.js.map