mirror of
https://github.com/xtr-dev/payload-automation.git
synced 2025-12-12 17:43:23 +00:00
Implement triggerField helper across all trigger modules
- Standardize virtual field creation using triggerField helper - Simplify field definitions by removing repetitive virtual field boilerplate - Use consistent naming pattern: '__trigger_' + fieldName instead of '__builtin_' - Preserve existing field conditions while adding parameter storage logic - Update all trigger field modules to use Field type consistently
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import type {Field} from "payload"
|
||||
|
||||
export type Trigger = {
|
||||
slug: string
|
||||
fields: Field[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user