(value: T)
| 120 | * never be asked or notified and the value specified will be used. |
| 121 | */ |
| 122 | export const staticDef = <T>(value: T): InputDefinition<T> => { |
| 123 | const buildFromUserInput = async (): Promise<T> => value |
| 124 | const summarizeForEdit = (): Uneditable => uneditable |
| 125 | const updateFromUserInput = async (): Promise<T> => value |
| 126 | return { name: 'unused', buildFromUserInput, summarizeForEdit, updateFromUserInput } |
| 127 | } |
| 128 | |
| 129 | export const undefinedDef = staticDef(undefined) |
| 130 |
no outgoing calls
no test coverage detected