@@ -33,11 +33,11 @@ inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(DataMarshallingExam
3333
3434struct DataMarshallingExamplesSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
3535 static constexpr auto methods = std::tuple{
36- Method<void (bool , int , double , std::string) noexcept >{0 , L" ExplicitPrimitiveArgs" },
36+ Method<void (bool , double , double , std::string) noexcept >{0 , L" ExplicitPrimitiveArgs" },
3737 Method<void (Callback<bool >) noexcept >{1 , L" ReturnExplicitBoolean" },
3838 SyncMethod<bool () noexcept >{2 , L" ReturnExplicitBooleanSync" },
39- Method<void (Callback<int >) noexcept >{3 , L" ReturnExplicitInteger" },
40- SyncMethod<int () noexcept >{4 , L" ReturnExplicitIntegerSync" },
39+ Method<void (Callback<double >) noexcept >{3 , L" ReturnExplicitInteger" },
40+ SyncMethod<double () noexcept >{4 , L" ReturnExplicitIntegerSync" },
4141 Method<void (Callback<double >) noexcept >{5 , L" ReturnExplicitDouble" },
4242 SyncMethod<double () noexcept >{6 , L" ReturnExplicitDoubleSync" },
4343 Method<void (Callback<std::string>) noexcept >{7 , L" ReturnExplicitString" },
@@ -64,8 +64,8 @@ struct DataMarshallingExamplesSpec : winrt::Microsoft::ReactNative::TurboModuleS
6464 REACT_SHOW_METHOD_SPEC_ERRORS (
6565 0 ,
6666 " ExplicitPrimitiveArgs" ,
67- " REACT_METHOD(ExplicitPrimitiveArgs) void ExplicitPrimitiveArgs(bool b, int i, double d, std::string s) noexcept { /* implementation */ }\n "
68- " REACT_METHOD(ExplicitPrimitiveArgs) static void ExplicitPrimitiveArgs(bool b, int i, double d, std::string s) noexcept { /* implementation */ }\n " );
67+ " REACT_METHOD(ExplicitPrimitiveArgs) void ExplicitPrimitiveArgs(bool b, double i, double d, std::string s) noexcept { /* implementation */ }\n "
68+ " REACT_METHOD(ExplicitPrimitiveArgs) static void ExplicitPrimitiveArgs(bool b, double i, double d, std::string s) noexcept { /* implementation */ }\n " );
6969 REACT_SHOW_METHOD_SPEC_ERRORS (
7070 1 ,
7171 " ReturnExplicitBoolean" ,
@@ -79,13 +79,13 @@ struct DataMarshallingExamplesSpec : winrt::Microsoft::ReactNative::TurboModuleS
7979 REACT_SHOW_METHOD_SPEC_ERRORS (
8080 3 ,
8181 " ReturnExplicitInteger" ,
82- " REACT_METHOD(ReturnExplicitInteger) void ReturnExplicitInteger(std::function<void(int )> const & callback) noexcept { /* implementation */ }\n "
83- " REACT_METHOD(ReturnExplicitInteger) static void ReturnExplicitInteger(std::function<void(int )> const & callback) noexcept { /* implementation */ }\n " );
82+ " REACT_METHOD(ReturnExplicitInteger) void ReturnExplicitInteger(std::function<void(double )> const & callback) noexcept { /* implementation */ }\n "
83+ " REACT_METHOD(ReturnExplicitInteger) static void ReturnExplicitInteger(std::function<void(double )> const & callback) noexcept { /* implementation */ }\n " );
8484 REACT_SHOW_METHOD_SPEC_ERRORS (
8585 4 ,
8686 " ReturnExplicitIntegerSync" ,
87- " REACT_SYNC_METHOD(ReturnExplicitIntegerSync) int ReturnExplicitIntegerSync() noexcept { /* implementation */ }\n "
88- " REACT_SYNC_METHOD(ReturnExplicitIntegerSync) static int ReturnExplicitIntegerSync() noexcept { /* implementation */ }\n " );
87+ " REACT_SYNC_METHOD(ReturnExplicitIntegerSync) double ReturnExplicitIntegerSync() noexcept { /* implementation */ }\n "
88+ " REACT_SYNC_METHOD(ReturnExplicitIntegerSync) static double ReturnExplicitIntegerSync() noexcept { /* implementation */ }\n " );
8989 REACT_SHOW_METHOD_SPEC_ERRORS (
9090 5 ,
9191 " ReturnExplicitDouble" ,
0 commit comments