- prompt<DESCRIPTION>(name: string, construct: PromptConstructorFunction<DESCRIPTION>): (<K, T>(target: T, key: K) => void)
-
Returns (<K, T>(target: T, key: K) => void)
-
- <K, T>(target: T, key: K): void
-
Type Parameters
-
K extends string | number | symbol
-
T extends Record<K, DESCRIPTION>
Returns void
Registers a prompt.