#![warn(
clippy::all,
clippy::panic_in_result_fn,
clippy::await_holding_refcell_ref,
unstable_features
)]
#![allow(non_snake_case)]
#![doc = include_str!("../../docs/javascript.md")]
mod client;
mod table;
pub mod utils;
mod view;
use perspective_client::config::*;
use perspective_client::proto::ViewOnUpdateResp;
use perspective_client::{OnUpdateOptions, TableInitOptions, UpdateOptions, ViewWindow};
use ts_rs::TS;
use wasm_bindgen::prelude::*;
pub use crate::client::Client;
pub use crate::table::*;
#[wasm_bindgen(typescript_custom_section)]
const TS_APPEND_CONTENT: &'static str = r#"
export type * from "../../src/ts/ts-rs/ViewWindow.d.ts";
export type * from "../../src/ts/ts-rs/TableInitOptions.d.ts";
export type * from "../../src/ts/ts-rs/ViewConfigUpdate.d.ts";
export type * from "../../src/ts/ts-rs/OnUpdateArgs.d.ts";
export type * from "../../src/ts/ts-rs/OnUpdateOptions.d.ts";
export type * from "../../src/ts/ts-rs/UpdateOptions.d.ts";
import type * as table_init_options from "../../src/ts/ts-rs/ViewWindow.d.ts";
import type * as table_init_options from "../../src/ts/ts-rs/TableInitOptions.d.ts";
import type * as view_config_update from "../../src/ts/ts-rs/ViewConfigUpdate.d.ts";
import type * as on_update_args from "../../src/ts/ts-rs/OnUpdateArgs.d.ts";
import type * as on_update_options from "../../src/ts/ts-rs/OnUpdateOptions.d.ts";
import type * as update_options from "../../src/ts/ts-rs/UpdateOptions.d.ts";
"#;
#[doc(hidden)]
pub fn generate_type_bindings() {
ViewWindow::export_all().unwrap();
TableInitOptions::export_all().unwrap();
ViewConfigUpdate::export_all().unwrap();
ViewOnUpdateResp::export_all().unwrap();
OnUpdateOptions::export_all().unwrap();
UpdateOptions::export_all().unwrap()
}
#[cfg(feature = "export-init")]
#[wasm_bindgen]
pub fn init() {
console_error_panic_hook::set_once();
utils::set_global_logging();
}