35 строки
811 B
C++
35 строки
811 B
C++
//
|
|
// Copyright (c) Microsoft Corporation
|
|
//
|
|
// This source code is licensed under the MIT license found in the
|
|
// LICENSE file in the root directory of this source tree.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <any>
|
|
#include <map>
|
|
#include <optional>
|
|
#include <string>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
namespace ReactTestApp
|
|
{
|
|
struct Component {
|
|
std::string appKey;
|
|
std::optional<std::string> displayName;
|
|
std::optional<std::map<std::string, std::any>> initialProperties;
|
|
std::optional<std::string> presentationStyle;
|
|
};
|
|
|
|
struct Manifest {
|
|
std::string name;
|
|
std::string displayName;
|
|
std::vector<Component> components;
|
|
};
|
|
|
|
std::optional<std::pair<Manifest, std::string>> GetManifest(std::string const &filename);
|
|
|
|
} // namespace ReactTestApp
|