react-native-windows/vnext/codegen/NativeSegmentFetcherSpec.g.h

41 строка
2.0 KiB
C++

/*
* This file is auto-generated from a NativeModule spec file in js.
*
* This is a C++ Spec class that should be used with MakeTurboModuleProvider to register native modules
* in a way that also verifies at compile time that the native module matches the interface required
* by the TurboModule JS spec.
*/
#pragma once
#include <NativeModules.h>
#include <tuple>
namespace Microsoft::ReactNativeSpecs {
struct SegmentFetcherSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
static constexpr auto methods = std::tuple{
Method<void(double, ::React::JSValue, Callback<std::optional<::React::JSValue>>) noexcept>{0, L"fetchSegment"},
Method<void(double, ::React::JSValue, Callback<std::optional<::React::JSValue>, std::optional<std::string>>) noexcept>{1, L"getSegment"},
};
template <class TModule>
static constexpr void ValidateModule() noexcept {
constexpr auto methodCheckResults = CheckMethods<TModule, SegmentFetcherSpec>();
REACT_SHOW_METHOD_SPEC_ERRORS(
0,
"fetchSegment",
" REACT_METHOD(fetchSegment) void fetchSegment(double segmentId, ::React::JSValue && options, std::function<void(std::optional<::React::JSValue>)> const & callback) noexcept { /* implementation */ }\n"
" REACT_METHOD(fetchSegment) static void fetchSegment(double segmentId, ::React::JSValue && options, std::function<void(std::optional<::React::JSValue>)> const & callback) noexcept { /* implementation */ }\n");
REACT_SHOW_METHOD_SPEC_ERRORS(
1,
"getSegment",
" REACT_METHOD(getSegment) void getSegment(double segmentId, ::React::JSValue && options, std::function<void(std::optional<::React::JSValue>, std::optional<std::string>)> const & callback) noexcept { /* implementation */ }\n"
" REACT_METHOD(getSegment) static void getSegment(double segmentId, ::React::JSValue && options, std::function<void(std::optional<::React::JSValue>, std::optional<std::string>)> const & callback) noexcept { /* implementation */ }\n");
}
};
} // namespace Microsoft::ReactNativeSpecs