backstage
47 строк · 1.1 Кб
1/*
2* Copyright 2022 The Backstage Authors
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*/
16
17{{>licenseInfo}}
18/** @public */
19export namespace Models {
20{{#models}}
21{{#model}}
22{{^withoutRuntimeChecks}}
23export * from './{{{ classFilename }}}';
24{{#useSagaAndRecords}}
25{{^isEnum}}
26export * from './{{{ classFilename }}}Record';
27{{/isEnum}}
28{{/useSagaAndRecords}}
29{{/withoutRuntimeChecks}}
30{{#withoutRuntimeChecks}}
31{{#isEnum}}
32{{>modelEnumInterfaces}}
33{{/isEnum}}
34{{^isEnum}}
35{{#oneOf}}
36{{#-first}}
37{{>modelOneOfInterfaces}}
38{{/-first}}
39{{/oneOf}}
40{{^oneOf}}
41{{>modelGenericInterfaces}}
42{{/oneOf}}
43{{/isEnum}}
44{{/withoutRuntimeChecks}}
45{{/model}}
46{{/models}}
47}
48