File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,15 @@ export class EnumModel<T = string> implements PhysycalFile {
3434 }
3535
3636 get hasComments ( ) : boolean {
37- return ! ! this . description || ! ! this . example || ! ! this . deprecated ;
37+ return ! ! this . description || ! ! this . example || ! ! this . deprecated ;
38+ }
39+
40+ get isString ( ) : boolean {
41+ return ! this . isNumeric ;
42+ }
43+
44+ get isNumeric ( ) : boolean {
45+ return this . type === 'integer' || this . type === 'number' ;
3846 }
3947
4048 get values ( ) : T [ ] {
Original file line number Diff line number Diff line change 1313 */
1414{ { / h a s C o m m e n t s } }
1515export enum { { name } } {
16+ { { #isNumeric} }
17+ { { #values} }
18+ { { . } } ,
19+ { { / v a l u e s } }
20+ { { / i s N u m e r i c } }
21+ { { #isString} }
1622 { { #values} }
1723 '{{.}}' = '{{.}}' ,
1824 { { / v a l u e s } }
25+ { { / i s S t r i n g } }
1926}
2027{ { / m o d e l } }
You can’t perform that action at this time.
0 commit comments