mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 09:41:35 +10:00
fix: use readonly modifiers for generics
This commit is contained in:
@ -17,7 +17,7 @@ export const ZSimpleTriggerJobOptionsSchema = z.object({
|
||||
});
|
||||
|
||||
// Map the array to create a union of objects we may accept
|
||||
export type TriggerJobOptions<Definitions extends Array<JobDefinition> = []> = {
|
||||
export type TriggerJobOptions<Definitions extends ReadonlyArray<JobDefinition> = []> = {
|
||||
[K in keyof Definitions]: {
|
||||
id?: string;
|
||||
name: Definitions[K]['trigger']['name'];
|
||||
|
||||
Reference in New Issue
Block a user