We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a02c486 commit 249d538Copy full SHA for 249d538
1 file changed
packages/core/src/types/constraint.ts
@@ -4,7 +4,7 @@
4
* @template T - The union type of allowed string values. Just a marker type to help with inference.
5
*/
6
// eslint-disable-next-line unused-imports/no-unused-vars
7
-export interface ConstraintFunction<T = string> {
+export interface ConstraintFunction<T extends string = string> {
8
(value: string): void;
9
display?: string;
10
}
0 commit comments