mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-18 21:30:04 -06:00
12 lines
281 B
JavaScript
12 lines
281 B
JavaScript
const { createSchema, validateSync } = require('@vue/cli-shared-utils')
|
|
|
|
const schema = createSchema(joi => ({
|
|
title: joi.string().required(),
|
|
message: joi.string().required(),
|
|
icon: joi.string()
|
|
}))
|
|
|
|
exports.validateNotify = (options) => {
|
|
validateSync(options, schema)
|
|
}
|