@bool-ts/guard-sdk 1.1.0-beta.13 → 1.1.0-beta.14

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.
@@ -3,7 +3,7 @@ import type { TResourceDefinition } from "./resources";
3
3
  export type TRolePermissionDefinition<T extends readonly TResourceDefinition[] = readonly TResourceDefinition[]> = {
4
4
  [R in T[number] as R["alias"]]: {
5
5
  readonly resource: R["alias"];
6
- readonly actions: TOptionalTupleUnorderedNonEmpty<R["actions"]>;
6
+ readonly actions: "*" | TOptionalTupleUnorderedNonEmpty<R["actions"]>;
7
7
  };
8
8
  }[T[number]["alias"]];
9
9
  export type TRoleDefinition<T extends readonly TResourceDefinition[] = readonly TResourceDefinition[]> = {
package/package.json CHANGED
@@ -46,5 +46,5 @@
46
46
  "test": "bun --hot run __test/index.ts"
47
47
  },
48
48
  "types": "./dist/index.d.ts",
49
- "version": "1.1.0-beta.13"
49
+ "version": "1.1.0-beta.14"
50
50
  }
@@ -9,7 +9,7 @@ export type TRolePermissionDefinition<
9
9
  > = {
10
10
  [R in T[number] as R["alias"]]: {
11
11
  readonly resource: R["alias"];
12
- readonly actions: TOptionalTupleUnorderedNonEmpty<R["actions"]>;
12
+ readonly actions: "*" | TOptionalTupleUnorderedNonEmpty<R["actions"]>;
13
13
  };
14
14
  }[T[number]["alias"]];
15
15