@optique/core 1.0.0-dev.1872 → 1.0.0-dev.1874
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context.d.cts +2 -2
- package/dist/context.d.ts +2 -2
- package/package.json +1 -1
package/dist/context.d.cts
CHANGED
|
@@ -197,7 +197,7 @@ interface SourceContext<TRequiredOptions = void> {
|
|
|
197
197
|
* during phase 1. Can be a Promise for async operations (e.g.,
|
|
198
198
|
* loading config files).
|
|
199
199
|
*/
|
|
200
|
-
getAnnotations(request?: SourceContextRequest, options?: unknown): Promise<Annotations> | Annotations;
|
|
200
|
+
getAnnotations(request?: SourceContextRequest, options?: unknown): Promise<Annotations | ReadonlyAnnotations> | Annotations | ReadonlyAnnotations;
|
|
201
201
|
/**
|
|
202
202
|
* Optional hook to provide additional internal annotations during
|
|
203
203
|
* annotation collection. Called after {@link getAnnotations} with the
|
|
@@ -212,7 +212,7 @@ interface SourceContext<TRequiredOptions = void> {
|
|
|
212
212
|
* @returns Additional annotations to merge, or `undefined`.
|
|
213
213
|
* @since 1.0.0
|
|
214
214
|
*/
|
|
215
|
-
getInternalAnnotations?(request: SourceContextRequest, annotations: Annotations): Annotations | undefined;
|
|
215
|
+
getInternalAnnotations?(request: SourceContextRequest, annotations: Annotations | ReadonlyAnnotations): Annotations | ReadonlyAnnotations | undefined;
|
|
216
216
|
/**
|
|
217
217
|
* Optional synchronous cleanup method. Called by `runWith()` and
|
|
218
218
|
* `runWithSync()` after parsing completes. In `runWith()`, this happens
|
package/dist/context.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ interface SourceContext<TRequiredOptions = void> {
|
|
|
197
197
|
* during phase 1. Can be a Promise for async operations (e.g.,
|
|
198
198
|
* loading config files).
|
|
199
199
|
*/
|
|
200
|
-
getAnnotations(request?: SourceContextRequest, options?: unknown): Promise<Annotations> | Annotations;
|
|
200
|
+
getAnnotations(request?: SourceContextRequest, options?: unknown): Promise<Annotations | ReadonlyAnnotations> | Annotations | ReadonlyAnnotations;
|
|
201
201
|
/**
|
|
202
202
|
* Optional hook to provide additional internal annotations during
|
|
203
203
|
* annotation collection. Called after {@link getAnnotations} with the
|
|
@@ -212,7 +212,7 @@ interface SourceContext<TRequiredOptions = void> {
|
|
|
212
212
|
* @returns Additional annotations to merge, or `undefined`.
|
|
213
213
|
* @since 1.0.0
|
|
214
214
|
*/
|
|
215
|
-
getInternalAnnotations?(request: SourceContextRequest, annotations: Annotations): Annotations | undefined;
|
|
215
|
+
getInternalAnnotations?(request: SourceContextRequest, annotations: Annotations | ReadonlyAnnotations): Annotations | ReadonlyAnnotations | undefined;
|
|
216
216
|
/**
|
|
217
217
|
* Optional synchronous cleanup method. Called by `runWith()` and
|
|
218
218
|
* `runWithSync()` after parsing completes. In `runWith()`, this happens
|