@scalar/nextjs-api-reference 0.1.0 → 0.1.1

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,15 +1,13 @@
1
- import { default as React_2 } from 'react';
2
1
  import type { ReferenceConfiguration } from '@scalar/api-reference';
3
2
 
4
3
  /**
5
- * Next.js wrapper for an Api Reference
4
+ * Next.js adapter for an Api Reference
6
5
  *
7
6
  * {@link https://github.com/scalar/scalar?tab=readme-ov-file#configuration Configuration}
7
+ *
8
+ * @params config - the Api Reference config object
9
+ * @params options - reserved for future use to add customization to the response
8
10
  */
9
- export declare const ApiReference: ({ config: _config }: ApiReferenceProps) => React_2.JSX.Element;
10
-
11
- export declare type ApiReferenceProps = {
12
- config: ReferenceConfiguration;
13
- };
11
+ export declare const ApiReference: (refConfig: ReferenceConfiguration) => () => Promise<Response>;
14
12
 
15
13
  export { }