@getcronit/pylon 3.0.0-canary-20250328121549.7ad3dbef94d4506f66f9e5e084c9f1eedf4ad6e8 → 3.0.0-canary-20250407104538.a60dfeae82297f043070d0cbbaf98568962159d4

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.
@@ -8,6 +8,6 @@ interface PylonHandlerOptions {
8
8
  };
9
9
  config?: PylonConfig;
10
10
  }
11
- export declare const executeConfig: (config: PylonConfig) => void;
11
+ export declare const executeConfig: (config: PylonConfig) => Promise<void>;
12
12
  export declare const handler: (options: PylonHandlerOptions) => (c: Context) => Promise<Response>;
13
13
  export {};
@@ -3,5 +3,5 @@ interface GlobalErrorProps {
3
3
  digest?: string;
4
4
  };
5
5
  }
6
- export default function GlobalError({ error }: GlobalErrorProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function GlobalError({ error, ...rest }: GlobalErrorProps): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ import { MiddlewareHandler } from 'hono';
14
14
  import { BuildContext, BuildOptions } from 'esbuild';
15
15
  export type Plugin<PluginContext extends Record<string, any> = {}, TServerContext extends Record<string, any> = {}, TUserContext = {}> = YogaPlugin<PluginContext, TServerContext, TUserContext> & {
16
16
  middleware?: MiddlewareHandler<Env>;
17
- setup?: (app: typeof pylonApp) => void;
17
+ setup?: (app: typeof pylonApp) => Promise<void> | void;
18
18
  build?: <T extends BuildOptions>(args: {
19
19
  onBuild: () => void;
20
20
  }) => Promise<Omit<BuildContext<T>, 'serve'>>;