<commit_before>package pman.tools.chromecast;

import tannus.node.EventEmitter;

@:jsRequire('chromecast-api', 'Browser')
extern class ExtBrowser extends EventEmitter {
	// constructor
	public function new():Void;
	public function update():Void;
	public function destroy():Void;
}<commit_msg>added 'onDevice' method to pman.tools.chromecast.ExtBrowser<commit_after>package pman.tools.chromecast;

import tannus.node.EventEmitter;

@:jsRequire('chromecast-api', 'Browser')
extern class ExtBrowser extends EventEmitter {
	// constructor
	public function new():Void;
	public function update():Void;
	public function destroy():Void;

	inline public function onDevice(f : ExtDevice->Void):Void {
	    on('deviceOn', f);
	}
}
{'fraction_non_alphanumeric': 0.12378303198887343, 'fraction_numerical': 0.0, 'mean_word_length': 6.2727272727272725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7544246', 'n_tokens_mistral': 226, 'n_tokens_neox': 227, 'n_words': 53}