File tree 2 files changed +121
-8
lines changed
2 files changed +121
-8
lines changed Original file line number Diff line number Diff line change 1
1
export interface IString {
2
2
after ( ) : this;
3
- camel ( ) : this;
3
+ camel ( value : string ) : this;
4
4
finish ( ) : this;
5
5
is ( ) : this;
6
6
slug ( ) : this;
7
7
startWith ( ) : this;
8
- upper ( ) : this;
8
+ upper ( value : string ) : this;
9
+ capitalize ( value : string ) : this;
9
10
snake ( ) : this;
10
11
studly ( ) : this;
11
12
words ( ) : this;
12
13
title ( ) : this;
13
14
singular ( ) : this;
14
- plural ( ) : this;
15
+ plural ( value : string , count : number ) : this;
15
16
start ( ) : this;
17
+ random ( length : number ) : this;
16
18
end ( ) : this;
17
19
endWith ( ) : this;
18
20
contains ( ) : this;
19
21
before ( ) : this;
20
22
lower ( value : string ) : this;
21
- length ( value : string , encoding : string ) : this;
23
+ l ( value : string , encoding : string ) : this;
22
24
kebab ( value : string ) : this;
23
- limit ( value : string , limit ? : number , end ? : string ) : this;
25
+ limit ( value : string , limit : number , end : string ) : this;
24
26
replaceFirst ( ) : this;
25
27
replaceLast ( ) : this;
26
- ucFirst ( ) : this;
28
+ ucFirst ( value : string ) : this;
27
29
}
Original file line number Diff line number Diff line change 1
- export class Str extends String {
2
- //
1
+ import { IString } from './string.interface' ;
2
+
3
+ export class Str extends String implements IString {
4
+ after ( ) : this {
5
+ return this ;
6
+ }
7
+
8
+ before ( ) : this {
9
+ return this ;
10
+ }
11
+
12
+ camel ( value : string ) : this {
13
+ return this ;
14
+ }
15
+
16
+ capitalize ( value : string ) : this {
17
+ return this ;
18
+ }
19
+
20
+ contains ( ) : this {
21
+ return this ;
22
+ }
23
+
24
+ end ( ) : this {
25
+ return this ;
26
+ }
27
+
28
+ endWith ( ) : this {
29
+ return this ;
30
+ }
31
+
32
+ finish ( ) : this {
33
+ return this ;
34
+ }
35
+
36
+ is ( ) : this {
37
+ return this ;
38
+ }
39
+
40
+ kebab ( value : string ) : this {
41
+ return this ;
42
+ }
43
+
44
+ limit ( value : string , limit = 100 , end = '...' ) : this {
45
+ return this ;
46
+ }
47
+
48
+ lower ( value : string ) : this {
49
+ value ;
50
+ return this ;
51
+ }
52
+
53
+ plural ( value : string , count : number ) : this {
54
+ return this ;
55
+ }
56
+
57
+ random ( length = 16 ) : this {
58
+ return this ;
59
+ }
60
+
61
+ replaceFirst ( ) : this {
62
+ return this ;
63
+ }
64
+
65
+ replaceLast ( ) : this {
66
+ return this ;
67
+ }
68
+
69
+ singular ( ) : this {
70
+ return this ;
71
+ }
72
+
73
+ slug ( ) : this {
74
+ return this ;
75
+ }
76
+
77
+ snake ( ) : this {
78
+ return this ;
79
+ }
80
+
81
+ start ( ) : this {
82
+ return this ;
83
+ }
84
+
85
+ startWith ( ) : this {
86
+ return this ;
87
+ }
88
+
89
+ studly ( ) : this {
90
+ return this ;
91
+ }
92
+
93
+ title ( ) : this {
94
+ return this ;
95
+ }
96
+
97
+ ucFirst ( value : string ) : this {
98
+ return this ;
99
+ }
100
+
101
+ upper ( value : string ) : this {
102
+ value . toUpperCase ( ) ;
103
+
104
+ return this ;
105
+ }
106
+
107
+ words ( ) : this {
108
+ return this ;
109
+ }
110
+
111
+ l ( value : string , encoding : string ) : this {
112
+ return this ;
113
+ }
3
114
}
You can’t perform that action at this time.
0 commit comments