feat: add ts export

This commit is contained in:
Sergey Onufrienko 2023-06-12 22:13:19 +02:00
parent b494b43496
commit cfc1856210
No known key found for this signature in database
GPG key ID: 3299873ECFD30CA3
3 changed files with 13 additions and 0 deletions

View file

@ -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 {