Skip to content

Commit 9e98461

Browse files
committed
add deprecated jsdoc annotation
1 parent 39bfa9a commit 9e98461

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/@ember/string/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ function _fmt(str: string, formats: any[]) {
109109
@param {Array} formats Optional array of parameters to interpolate into string.
110110
@return {String} formatted string
111111
@public
112+
@deprecated
112113
*/
113114
export function loc(str: string, formats: any[]): string {
114115
if (!Array.isArray(formats) || arguments.length > 2) {
@@ -140,6 +141,7 @@ export function loc(str: string, formats: any[]): string {
140141
@param {String} str The string to split
141142
@return {Array} array containing the split strings
142143
@public
144+
@deprecated
143145
*/
144146
export function w(str: string): string[] {
145147
return str.split(/\s+/);
@@ -161,6 +163,7 @@ export function w(str: string): string[] {
161163
@param {String} str The string to decamelize.
162164
@return {String} the decamelized string.
163165
@public
166+
@deprecated
164167
*/
165168
export function decamelize(str: string): string {
166169
return DECAMELIZE_CACHE.get(str);
@@ -183,6 +186,7 @@ export function decamelize(str: string): string {
183186
@param {String} str The string to dasherize.
184187
@return {String} the dasherized string.
185188
@public
189+
@deprecated
186190
*/
187191
export function dasherize(str: string): string {
188192
return STRING_DASHERIZE_CACHE.get(str);
@@ -206,6 +210,7 @@ export function dasherize(str: string): string {
206210
@param {String} str The string to camelize.
207211
@return {String} the camelized string.
208212
@public
213+
@deprecated
209214
*/
210215
export function camelize(str: string): string {
211216
return CAMELIZE_CACHE.get(str);
@@ -228,6 +233,7 @@ export function camelize(str: string): string {
228233
@param {String} str the string to classify
229234
@return {String} the classified string
230235
@public
236+
@deprecated
231237
*/
232238
export function classify(str: string): string {
233239
return CLASSIFY_CACHE.get(str);
@@ -251,6 +257,7 @@ export function classify(str: string): string {
251257
@param {String} str The string to underscore.
252258
@return {String} the underscored string.
253259
@public
260+
@deprecated
254261
*/
255262
export function underscore(str: string): string {
256263
return UNDERSCORE_CACHE.get(str);
@@ -273,6 +280,7 @@ export function underscore(str: string): string {
273280
@param {String} str The string to capitalize.
274281
@return {String} The capitalized string.
275282
@public
283+
@deprecated
276284
*/
277285
export function capitalize(str: string): string {
278286
return CAPITALIZE_CACHE.get(str);
@@ -287,6 +295,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
287295
@for @ember/string
288296
@static
289297
@private
298+
@deprecated
290299
*/
291300
w: {
292301
configurable: true,
@@ -304,6 +313,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
304313
@for @ember/string
305314
@static
306315
@private
316+
@deprecated
307317
*/
308318
loc: {
309319
configurable: true,
@@ -321,6 +331,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
321331
@for @ember/string
322332
@static
323333
@private
334+
@deprecated
324335
*/
325336
camelize: {
326337
configurable: true,
@@ -338,6 +349,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
338349
@for @ember/string
339350
@static
340351
@private
352+
@deprecated
341353
*/
342354
decamelize: {
343355
configurable: true,
@@ -355,6 +367,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
355367
@for @ember/string
356368
@static
357369
@private
370+
@deprecated
358371
*/
359372
dasherize: {
360373
configurable: true,
@@ -372,6 +385,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
372385
@for @ember/string
373386
@static
374387
@private
388+
@deprecated
375389
*/
376390
underscore: {
377391
configurable: true,
@@ -389,6 +403,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
389403
@for @ember/string
390404
@static
391405
@private
406+
@deprecated
392407
*/
393408
classify: {
394409
configurable: true,
@@ -406,6 +421,7 @@ if (ENV.EXTEND_PROTOTYPES.String) {
406421
@for @ember/string
407422
@static
408423
@private
424+
@deprecated
409425
*/
410426
capitalize: {
411427
configurable: true,

0 commit comments

Comments
 (0)