-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmain.js
More file actions
34 lines (29 loc) · 748 Bytes
/
main.js
File metadata and controls
34 lines (29 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export default {
// Name used to configure the plugin
name: 'example',
// // Set error properties
// properties(info) {
// return {}
// },
// // Add error instance methods like
// // `ErrorClass.exampleMethod(error, ...args)`
// instanceMethods: {
// exampleMethod(info, ...args) {
// // ...
// },
// },
// // Add `ErrorClass` static methods like `ErrorClass.staticMethod(...args)`
// staticMethods: {
// staticMethod(info, ...args) {
// // ...
// },
// },
// // Validate and normalize options
// getOptions(options, full) {
// return options
// },
// // Determine if a value is plugin's options
// isOptions(options) {
// return typeof options === 'boolean'
// },
}