@sealcode/sealgen 0.18.1 → 0.18.2

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.
@@ -35,8 +35,8 @@ export declare abstract class StatefulPage<State extends Record<string, unknown>
35
35
  abstract getInitialState(ctx: Context): State | Promise<State>;
36
36
  abstract render(ctx: Context, state: State, inputs: Record<string, string>): Templatable | Promise<Templatable>;
37
37
  canAccess(): Promise<{
38
- readonly canAccess: true;
39
- readonly message: "";
38
+ canAccess: boolean;
39
+ message: string;
40
40
  }>;
41
41
  constructor();
42
42
  abstract wrapInLayout(ctx: Context, content: Templatable, state: State): Templatable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -67,7 +67,7 @@ export abstract class StatefulPage<
67
67
  inputs: Record<string, string>
68
68
  ): Templatable | Promise<Templatable>;
69
69
 
70
- async canAccess() {
70
+ async canAccess(): Promise<{ canAccess: boolean; message: string }> {
71
71
  return <const>{ canAccess: true, message: "" };
72
72
  }
73
73