@@ -108,7 +108,7 @@ pub fn typescript_ffi_converter_name(typ: &impl AsType, askama_values: &dyn aska
108108 Type :: Float64 => "FfiConverterFloat64" . into ( ) ,
109109 Type :: Boolean => "FfiConverterBool" . into ( ) ,
110110 Type :: String => "FfiConverterString" . into ( ) ,
111- Type :: Bytes => "FfiConverterBytes " . into ( ) ,
111+ Type :: Bytes => "FfiConverterArrayBuffer " . into ( ) ,
112112 Type :: Timestamp => "FfiConverterTimestamp" . into ( ) ,
113113 Type :: Duration => "FfiConverterDuration" . into ( ) ,
114114 Type :: Enum { name, .. } | Type :: Record { name, .. } | Type :: Object { name, .. } => typescript_ffi_converter_struct_enum_object_name ( & name, askama_values) ?,
@@ -131,7 +131,7 @@ pub fn typescript_ffi_converter_name(typ: &impl AsType, askama_values: &dyn aska
131131
132132pub fn typescript_ffi_converter_lift_with ( target : String , askama_values : & dyn askama:: Values , typ : & impl AsType ) -> Result < String > {
133133 Ok ( match typ. as_type ( ) {
134- Type :: String | Type :: Map { .. } | Type :: Sequence { .. } | Type :: Enum { .. } | Type :: Record { .. } => {
134+ Type :: String | Type :: Bytes | Type :: Map { .. } | Type :: Sequence { .. } | Type :: Enum { .. } | Type :: Record { .. } => {
135135 format ! ( "{}.lift(new UniffiRustBufferValue({target}).consumeIntoUint8Array())" , typescript_ffi_converter_name( typ, askama_values) ?)
136136 } ,
137137 Type :: Optional { inner_type } => {
@@ -143,7 +143,7 @@ pub fn typescript_ffi_converter_lift_with(target: String, askama_values: &dyn as
143143
144144pub fn typescript_ffi_converter_lower_with ( target : String , askama_values : & dyn askama:: Values , typ : & impl AsType ) -> Result < String > {
145145 Ok ( match typ. as_type ( ) {
146- Type :: String | Type :: Map { .. } | Type :: Sequence { .. } | Type :: Enum { .. } | Type :: Record { .. } => {
146+ Type :: String | Type :: Bytes | Type :: Map { .. } | Type :: Sequence { .. } | Type :: Enum { .. } | Type :: Record { .. } => {
147147 format ! ( "UniffiRustBufferValue.allocateWithBytes({}.lower({target})).toStruct()" , typescript_ffi_converter_name( typ, askama_values) ?)
148148 } ,
149149 Type :: Optional { inner_type } => {
0 commit comments