use ag_grid_derive::FromInterface;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
pub(crate) type ISortModelItem;
#[wasm_bindgen(method, getter, js_name = colId)]
fn col_id(this: &ISortModelItem) -> String;
#[wasm_bindgen(method, getter)]
fn sort(this: &ISortModelItem) -> SortDirection;
}
#[derive(Debug, FromInterface)]
pub struct SortModelItem {
pub col_id: String,
pub sort: SortDirection,
}
#[wasm_bindgen]
#[derive(Debug)]
pub enum SortDirection {
Asc = "asc",
Desc = "desc",
}