From 358d38d48ca758df700d32d024d8fe7239693a2d Mon Sep 17 00:00:00 2001 From: Moritz Bischof Date: Fri, 29 Apr 2022 22:34:24 +0200 Subject: [PATCH] impl TS for Mutex, Weak --- README.md | 3 +++ ts-rs/src/lib.rs | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ebe890..3fc4bda 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,9 @@ When running `cargo test`, the TypeScript bindings will be exported to the file - `uuid-impl` Implement `TS` for types from uuid +- `bson-uuid-impl` + + Implement `TS` for types from bson - `bytes-impl` Implement `TS` for types from bytes diff --git a/ts-rs/src/lib.rs b/ts-rs/src/lib.rs index 29b2ec1..8c0c7e1 100644 --- a/ts-rs/src/lib.rs +++ b/ts-rs/src/lib.rs @@ -81,8 +81,11 @@ //! Implement `TS` for types from bigdecimal //! - `uuid-impl` //! -//! Implement `TS` for types from uuid -//! - `bytes-impl` +//! Implement `TS` for types from uuid +//! - `bson-uuid-impl` +//! +//! Implement `TS` for types from bson +//! - `bytes-impl` //! //! Implement `TS` for types from bytes //! - `indexmap-impl` @@ -518,6 +521,8 @@ impl_wrapper!(impl TS for std::rc::Rc); impl_wrapper!(impl TS for std::borrow::Cow<'static, T>); impl_wrapper!(impl TS for std::cell::Cell); impl_wrapper!(impl TS for std::cell::RefCell); +impl_wrapper!(impl TS for std::sync::Mutex); +impl_wrapper!(impl TS for std::sync::Weak); impl_tuples!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10);