11export {
2- type CollectFn ,
3- type Exact ,
42 keysOf ,
53 readFileFromUrl ,
64 slash ,
@@ -13,6 +11,8 @@ export {
1311 isEmptyObject ,
1412 isNotEmptyArray ,
1513 isNotEmptyObject ,
14+ type CollectFn ,
15+ type Exact ,
1616} from './utils.js' ;
1717export { dequal } from './utils/dequal.js' ;
1818export { Oas3_1Types } from './types/oas3_1.js' ;
@@ -22,75 +22,33 @@ export { Oas2Types } from './types/oas2.js';
2222export { AsyncApi2Types } from './types/asyncapi2.js' ;
2323export { AsyncApi3Types } from './types/asyncapi3.js' ;
2424export { ConfigTypes , createConfigTypes } from './types/redocly-yaml.js' ;
25-
26- export type {
27- Oas3Definition ,
28- Oas3_1Definition ,
29- Oas3Components ,
30- Oas3_1Components ,
31- Oas3PathItem ,
32- Oas3Paths ,
33- Oas3ComponentName ,
34- Oas3Schema ,
35- Oas3_1Schema ,
36- Oas3Tag ,
37- Referenced ,
38- OasRef ,
39- Oas3Parameter ,
40- Oas3Server ,
41- Oas3Operation ,
42- Oas3Responses ,
43- ApiKeyAuth ,
44- HttpAuth ,
45- BasicAuth ,
46- BearerAuth ,
47- DigestAuth ,
48- MutualTLSAuth ,
49- OAuth2Auth ,
50- OpenIDAuth ,
51- Oas3SecurityScheme ,
52- Oas3SecurityRequirement ,
53- } from './typings/openapi.js' ;
54- export type { Oas2Definition } from './typings/swagger.js' ;
55- export type { Async3Definition } from './typings/asyncapi3.js' ;
56- export type { Async2Definition } from './typings/asyncapi.js' ;
57- export type {
58- ArazzoDefinition ,
59- ExtendedOperation ,
60- ExtendedSecurity ,
61- ResolvedSecurity ,
62- } from './typings/arazzo.js' ;
63- export type { StatsAccumulator , StatsName } from './typings/common.js' ;
64- export { type NormalizedNodeType , type NodeType , normalizeTypes } from './types/index.js' ;
25+ export { normalizeTypes , type NormalizedNodeType , type NodeType } from './types/index.js' ;
6526export { Stats } from './rules/other/stats.js' ;
66-
6727export {
28+ loadConfig ,
29+ createConfig ,
30+ findConfig ,
31+ resolvePlugins ,
32+ ConfigValidationError ,
33+ Config , // FIXME: export it as a type
6834 type RawUniversalConfig ,
6935 type RawUniversalApiConfig ,
7036 type ResolvedConfig ,
7137 type ResolvedApiConfig ,
7238 type Plugin ,
7339 type RuleConfig ,
74- Config , // FIXME: export it as a type
75- IGNORE_FILE ,
76- loadConfig ,
77- findConfig ,
78- CONFIG_FILE_NAME ,
7940 type RuleSeverity ,
80- createConfig ,
81- ConfigValidationError ,
82- resolvePlugins ,
8341} from './config/index.js' ;
84-
42+ export * from './config/constants.js' ;
8543export {
86- type ResolvedRefMap ,
8744 Source ,
8845 BaseResolver ,
8946 Document ,
90- resolveDocument ,
9147 ResolveError ,
9248 YamlParseError ,
49+ resolveDocument ,
9350 makeDocumentFromString ,
51+ type ResolvedRefMap ,
9452} from './resolve.js' ;
9553export { parseYaml , stringifyYaml } from './js-yaml/index.js' ;
9654export {
@@ -101,11 +59,11 @@ export {
10159 type Location ,
10260} from './ref-utils.js' ;
10361export {
104- type SpecMajorVersion ,
105- getMajorSpecVersion ,
106- type SpecVersion ,
10762 detectSpec ,
63+ getMajorSpecVersion ,
10864 getTypes ,
65+ type SpecVersion ,
66+ type SpecMajorVersion ,
10967} from './oas-types.js' ;
11068export {
11169 normalizeVisitors ,
@@ -134,31 +92,66 @@ export {
13492 type Arazzo1Preprocessor ,
13593 type Overlay1Preprocessor ,
13694} from './visitors.js' ;
137-
13895export {
13996 WalkContext ,
140- walkDocument ,
14197 NormalizedProblem ,
14298 ProblemSeverity ,
14399 LineColLocationObject ,
144100 LocationObject ,
145101 Loc ,
102+ walkDocument ,
146103 type UserContext ,
147104} from './walk.js' ;
148-
149105export { getAstNodeByPointer , getLineColLocation , getCodeframe } from './format/codeframes.js' ;
150- export { formatProblems , OutputFormat , getTotals , Totals } from './format/format.js' ;
106+ export { formatProblems , getTotals , type OutputFormat , type Totals } from './format/format.js' ;
151107export { lint , lint as validate , lintDocument , lintFromString , lintConfig } from './lint.js' ;
152108export {
153- type BundleResult ,
154109 bundle ,
155110 bundleDocument ,
156111 mapTypeToComponent ,
157112 bundleFromString ,
113+ type BundleResult ,
158114} from './bundle.js' ;
159-
160115export { type Assertions , type Assertion } from './rules/common/assertions/index.js' ;
161-
162116export { logger , type LoggerInterface } from './logger.js' ;
163117export { HandledError } from './utils/error.js' ;
164118export { isBrowser } from './env.js' ;
119+
120+ export type {
121+ Oas3Definition ,
122+ Oas3_1Definition ,
123+ Oas3Components ,
124+ Oas3_1Components ,
125+ Oas3PathItem ,
126+ Oas3Paths ,
127+ Oas3ComponentName ,
128+ Oas3Schema ,
129+ Oas3_1Schema ,
130+ Oas3Tag ,
131+ Referenced ,
132+ OasRef ,
133+ Oas3Parameter ,
134+ Oas3Server ,
135+ Oas3Operation ,
136+ Oas3Responses ,
137+ ApiKeyAuth ,
138+ HttpAuth ,
139+ BasicAuth ,
140+ BearerAuth ,
141+ DigestAuth ,
142+ MutualTLSAuth ,
143+ OAuth2Auth ,
144+ OpenIDAuth ,
145+ Oas3SecurityScheme ,
146+ Oas3SecurityRequirement ,
147+ } from './typings/openapi.js' ;
148+ export type { Oas2Definition } from './typings/swagger.js' ;
149+ export type { Async3Definition } from './typings/asyncapi3.js' ;
150+ export type { Async2Definition } from './typings/asyncapi.js' ;
151+ export type {
152+ ArazzoDefinition ,
153+ ExtendedOperation ,
154+ ExtendedSecurity ,
155+ ResolvedSecurity ,
156+ } from './typings/arazzo.js' ;
157+ export type { StatsAccumulator , StatsName } from './typings/common.js' ;
0 commit comments