Add camelcase rule, import Error type from JS and rename get_inner_color to inner. (#44)

* Add camelcase rule to .eslintrc.js

* Import Error type from JS, rename crate::wrappers::Color::get_inner_color to crate::wrappers::Color::inner
This commit is contained in:
ProTheory8
2021-03-27 02:26:55 -07:00
committed by Keavon Chambers
parent 0156813dec
commit fe111a6684
6 changed files with 25 additions and 7 deletions
+10
View File
@@ -0,0 +1,10 @@
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
#[derive(Clone, Debug)]
pub type Error;
#[wasm_bindgen(constructor)]
pub fn new(msg: &str) -> Error;
}