File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,19 @@ export class PgLiteral {
21
21
*/
22
22
public readonly literal = true ;
23
23
24
+ /**
25
+ * Value of the literal.
26
+ */
27
+ public readonly value : string ;
28
+
24
29
/**
25
30
* Creates a new `PgLiteral` instance.
26
31
*
27
32
* @param value The string value.
28
33
*/
29
- constructor ( public readonly value : string ) { }
34
+ constructor ( value : string ) {
35
+ this . value = value ;
36
+ }
30
37
31
38
/**
32
39
* Returns the string value.
Original file line number Diff line number Diff line change 2
2
3
3
// credits to https://stackoverflow.com/a/12504061/4790644
4
4
export class StringIdGenerator {
5
+ private readonly chars : string ;
6
+
5
7
private ids : number [ ] = [ 0 ] ;
6
8
7
- constructor ( private readonly chars = 'abcdefghijklmnopqrstuvwxyz' ) { }
9
+ constructor ( chars = 'abcdefghijklmnopqrstuvwxyz' ) {
10
+ this . chars = chars ;
11
+ }
8
12
9
13
next ( ) : string {
10
14
const idsChars = this . ids . map ( ( id ) => this . chars [ id ] ) ;
You can’t perform that action at this time.
0 commit comments