feat: add ts export
This commit is contained in:
parent
b494b43496
commit
cfc1856210
3 changed files with 13 additions and 0 deletions
|
@ -11,9 +11,12 @@ use serde::{
|
|||
Deserialize, Deserializer,
|
||||
};
|
||||
use serde_json::json;
|
||||
use ts_rs::TS;
|
||||
|
||||
#[derive(Clone, Copy, Default, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
#[repr(transparent)]
|
||||
#[derive(TS)]
|
||||
#[ts(export, export_to = "theme/types/")]
|
||||
pub struct Color(ColorU);
|
||||
|
||||
impl Color {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue