Skip to content

Interface: GetSnapshotOptions<N> ​

Defined in: packages/sveltekit/src/server/handle.ts:138

Options of getSnapshot.

Type Parameters ​

Type ParameterDefault type
N extends stringstring

Properties ​

PropertyTypeDescriptionDefined in
checkBefore?readonly N[]Permission names to run the engine's before hook for. Those it denies are sent as denied, and the client (setRbacContext(), <Can>) treats them as not allowed, super-admins included.packages/sveltekit/src/server/handle.ts:143
guard?stringMake the snapshot in this guard instead of the hook's (subject.withScope({ guard })).packages/sveltekit/src/server/handle.ts:145

Released under the MIT License. Inspired by spatie/laravel-permission.