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

@ -12,8 +12,11 @@ use std::{
ops::{Deref, DerefMut},
sync::Arc,
};
use ts_rs::TS;
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
#[derive(TS)]
#[ts(export, export_to = "theme/types/")]
pub struct FamilyId(usize);
struct Family {