-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathNativeDevToolsSettingsManagerSpec.g.h
53 lines (45 loc) · 2.61 KB
/
NativeDevToolsSettingsManagerSpec.g.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* 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
// clang-format off
#include <NativeModules.h>
#include <tuple>
namespace Microsoft::ReactNativeSpecs {
struct DevToolsSettingsManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
static constexpr auto methods = std::tuple{
Method<void(std::string) noexcept>{0, L"setConsolePatchSettings"},
SyncMethod<std::optional<std::string>() noexcept>{1, L"getConsolePatchSettings"},
Method<void(std::string) noexcept>{2, L"setProfilingSettings"},
SyncMethod<std::optional<std::string>() noexcept>{3, L"getProfilingSettings"},
};
template <class TModule>
static constexpr void ValidateModule() noexcept {
constexpr auto methodCheckResults = CheckMethods<TModule, DevToolsSettingsManagerSpec>();
REACT_SHOW_METHOD_SPEC_ERRORS(
0,
"setConsolePatchSettings",
" REACT_METHOD(setConsolePatchSettings) void setConsolePatchSettings(std::string newConsolePatchSettings) noexcept { /* implementation */ }\n"
" REACT_METHOD(setConsolePatchSettings) static void setConsolePatchSettings(std::string newConsolePatchSettings) noexcept { /* implementation */ }\n");
REACT_SHOW_METHOD_SPEC_ERRORS(
1,
"getConsolePatchSettings",
" REACT_SYNC_METHOD(getConsolePatchSettings) std::optional<std::string> getConsolePatchSettings() noexcept { /* implementation */ }\n"
" REACT_SYNC_METHOD(getConsolePatchSettings) static std::optional<std::string> getConsolePatchSettings() noexcept { /* implementation */ }\n");
REACT_SHOW_METHOD_SPEC_ERRORS(
2,
"setProfilingSettings",
" REACT_METHOD(setProfilingSettings) void setProfilingSettings(std::string newProfilingSettings) noexcept { /* implementation */ }\n"
" REACT_METHOD(setProfilingSettings) static void setProfilingSettings(std::string newProfilingSettings) noexcept { /* implementation */ }\n");
REACT_SHOW_METHOD_SPEC_ERRORS(
3,
"getProfilingSettings",
" REACT_SYNC_METHOD(getProfilingSettings) std::optional<std::string> getProfilingSettings() noexcept { /* implementation */ }\n"
" REACT_SYNC_METHOD(getProfilingSettings) static std::optional<std::string> getProfilingSettings() noexcept { /* implementation */ }\n");
}
};
} // namespace Microsoft::ReactNativeSpecs