@cinnabun/openapi 0.0.6 → 0.0.8

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.
@@ -1,6 +1,7 @@
1
+ import { type Constructor } from "@cinnabun/core";
1
2
  import type { OpenApiModuleOptions } from "./interfaces/openapi-options.js";
2
3
  export declare class OpenApiModule {
3
- static forRoot(options: OpenApiModuleOptions): Function;
4
+ static forRoot(options: OpenApiModuleOptions): Constructor;
4
5
  static getOptions(): OpenApiModuleOptions;
5
6
  static resetCache(): void;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinnabun/openapi",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { Module, RestController, GetMapping } from "@cinnabun/core";
1
+ import { Module, RestController, GetMapping, type Constructor } from "@cinnabun/core";
2
2
  import type { OpenApiModuleOptions } from "./interfaces/openapi-options.js";
3
3
  import { scanRoutes } from "./generator/route-scanner.js";
4
4
  import { generateSpec, type OpenApiSpec } from "./generator/openapi-generator.js";
@@ -7,7 +7,7 @@ let moduleOptions: OpenApiModuleOptions | null = null;
7
7
  let cachedSpec: OpenApiSpec | null = null;
8
8
 
9
9
  export class OpenApiModule {
10
- static forRoot(options: OpenApiModuleOptions): Function {
10
+ static forRoot(options: OpenApiModuleOptions): Constructor {
11
11
  moduleOptions = options;
12
12
  cachedSpec = null;
13
13