@scalar/nextjs-api-reference 0.5.13 → 0.6.0

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ReferenceConfiguration } from '@scalar/types/legacy';
1
+ import { HtmlRenderingConfiguration } from '@scalar/core/libs/html-rendering';
2
2
 
3
3
  /**
4
4
  * Next.js adapter for an Api Reference
@@ -8,10 +8,11 @@ import { ReferenceConfiguration } from '@scalar/types/legacy';
8
8
  * @params config - the Api Reference config object
9
9
  * @params options - reserved for future use to add customization to the response
10
10
  */
11
- export declare const ApiReference: (config: ApiReferenceOptions) => () => Promise<Response>;
11
+ export declare const ApiReference: (givenConfiguration: Partial<ApiReferenceConfiguration>) => () => Promise<Response>;
12
12
 
13
- export declare type ApiReferenceOptions = ReferenceConfiguration & {
14
- cdn?: string;
15
- };
13
+ /**
14
+ * The configuration for the Scalar API Reference for Next.js
15
+ */
16
+ declare type ApiReferenceConfiguration = HtmlRenderingConfiguration;
16
17
 
17
18
  export { }