Skip to content

Commit c63d420

Browse files
style: fix linter issues
1 parent 0dd7050 commit c63d420

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/property.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
const { BaseProperty } = require('admin-bro')
22

3+
/**
4+
* @type {Array<[string, import('admin-bro').PropertyType]>}
5+
*
6+
* @var {[type]}
7+
*/
38
const TYPES_MAPPING = [
49
['STRING', 'string'],
510
['TEXT', 'string'],
@@ -62,9 +67,12 @@ class Property extends BaseProperty {
6267
return this.sequelizePath.type.constructor.name === 'ARRAY'
6368
}
6469

70+
/**
71+
* @returns {import('admin-bro').PropertyType}
72+
*/
6573
type() {
6674
let sequelizeType = this.sequelizePath.type
67-
75+
6876
if (this.isArray()) {
6977
sequelizeType = sequelizeType.type
7078
}

0 commit comments

Comments
 (0)