16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
|
|
import { TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
|
|
|
|
const ErrorSchema = new TypedSimpleSchema({
|
|
message: {
|
|
type: String,
|
|
max: STORAGE_LIMITS.errorMessage,
|
|
},
|
|
type: {
|
|
type: String,
|
|
max: STORAGE_LIMITS.name,
|
|
},
|
|
});
|
|
|
|
export default ErrorSchema;
|