UNPKG

@imput/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js

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