11 lines
274 B
TypeScript
11 lines
274 B
TypeScript
import { Config } from '../types';
|
|
|
|
export default {
|
|
default: () => ({ contentVersionLimit: 50 }),
|
|
validator: (config: Config) => {
|
|
if (typeof config.contentVersionLimit !== 'number') {
|
|
throw new Error('contentVersionLimit has to be a boolean');
|
|
}
|
|
},
|
|
};
|