mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
10 lines
363 B
TypeScript
10 lines
363 B
TypeScript
import { FieldType } from '@prisma/client';
|
|
|
|
const SignatureFieldTypes = [FieldType.SIGNATURE, FieldType.FREE_SIGNATURE] as const;
|
|
|
|
type SignatureFieldType = (typeof SignatureFieldTypes)[number];
|
|
|
|
export const isSignatureFieldType = (type: FieldType): type is SignatureFieldType => {
|
|
return type === FieldType.SIGNATURE || type === FieldType.FREE_SIGNATURE;
|
|
};
|