yerpc icon indicating copy to clipboard operation
yerpc copied to clipboard

yerpc feature request: adding a feature to support `typeshare` in addition to

Open greatcat19 opened this issue 2 years ago • 0 comments

I found the original feature request button redirected to me to the forum of deltachat, which is not about the yerpc lib.

I'm creating a feature request for typeshare. Because it is easier to extend external types like uuid::Uuid without introducing a proxy type.

https://github.com/1Password/typeshare

The initial problem is like this: https://github.com/dbeckwith/rust-typescript-type-def/issues/28

impl TypeDef for Uuid {
    const INFO: TypeInfo = TypeInfo::Native(NativeTypeInfo {
        r#ref: TypeExpr::ident(Ident("string")),
    });
}

But it shows:

`Uuid` is not defined in the current craterustc[E0117](https://doc.rust-lang.org/error-index.html#E0117)

However, typeshare does not have a namespace feature so far: https://github.com/1Password/typeshare/issues/71

greatcat19 avatar Nov 19 '23 13:11 greatcat19