We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46a8456 commit 17fea6cCopy full SHA for 17fea6c
src/generators/generator-base.js
@@ -49,12 +49,19 @@ export class Base extends YoBase {
49
to() {
50
return this.filters.expect ? ').to' : '.should';
51
}
52
+
53
+ public() {
54
+ return this.filters.ts ? 'public ' : '';
55
+ }
56
+ private() {
57
+ return this.filters.ts ? 'private ' : '';
58
59
60
61
export class NamedBase extends Base {
62
constructor(...args) {
63
super(...args);
-
64
65
this.argument('name', { type: String, required: true });
66
67
var name = this.name.replace(/\//g, '-');
0 commit comments