Skip to content

Commit f68a71f

Browse files
author
Sven Ulrich
committed
updatedeps: fix declaration
1 parent 518db0f commit f68a71f

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
.vscode/*
3-
3+
ui
44

55
# Compiled source #
66
###################

index.ts

+18
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ export class StringBuilder {
312312
return this.Values.join(String.empty);
313313
}
314314

315+
/**
316+
* @deprecated The method should not be used, and will be removed in future versions! Use `toString()` instead.
317+
*/
315318
public ToString() {
316319
return this.toString();
317320
}
@@ -320,6 +323,9 @@ export class StringBuilder {
320323
this.Values.push(value);
321324
}
322325

326+
/**
327+
* @deprecated The method should not be used, and will be removed in future versions! Use `append()` instead.
328+
*/
323329
public Append(value: string) {
324330
this.append(value);
325331
}
@@ -328,6 +334,9 @@ export class StringBuilder {
328334
this.Values.push(EOL + value);
329335
}
330336

337+
/**
338+
* @deprecated The method should not be used, and will be removed in future versions! Use `appendLine()` instead.
339+
*/
331340
public AppendLine(value: string) {
332341
this.appendLine(value);
333342
}
@@ -336,6 +345,9 @@ export class StringBuilder {
336345
this.Values.push(String.format(format, ...args));
337346
}
338347

348+
/**
349+
* @deprecated The method should not be used, and will be removed in future versions! Use `appendFormat()` instead.
350+
*/
339351
public AppendFormat(format: string, ...args: any[]) {
340352
this.appendFormat(format, ...args);
341353
}
@@ -344,6 +356,9 @@ export class StringBuilder {
344356
this.Values.push(EOL + String.format(format, ...args));
345357
}
346358

359+
/**
360+
* @deprecated The method should not be used, and will be removed in future versions! Use `appendLineFormat()` instead.
361+
*/
347362
public AppendLineFormat(format: string, ...args: any[]) {
348363
return this.appendLineFormat(format, ...args);
349364
}
@@ -352,6 +367,9 @@ export class StringBuilder {
352367
this.Values = [];
353368
}
354369

370+
/**
371+
* @deprecated The method should not be used, and will be removed in future versions! Use `clear()` instead.
372+
*/
355373
public Clear() {
356374
this.clear();
357375
}

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "typescript-string-operations",
3-
"version": "1.5.0",
3+
"version": "1.5.0-rc.11",
44
"description": "Simple lightweight string operation library for Typescript, works with Angular",
5-
"main": "dist/index.min.js",
6-
"types": "./dist/index.d.ts",
5+
"main": "dist/index.js",
6+
"types": "index.d.ts",
77
"files": [
8-
"dist/**/*"
8+
"dist/**/*",
9+
"index.d.ts"
910
],
1011
"scripts": {
1112
"test": "mocha -r ts-node/register tests/**/tests.ts",

tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
"noImplicitAny": true,
77
"removeComments": false,
88
"target": "ES2022",
9-
"module": "CommonJS",
9+
"module": "ES2022",
1010
"outDir": "./dist",
1111
"esModuleInterop": true,
1212
"skipLibCheck": true,
1313
"declaration": true,
14-
"declarationMap": true,
14+
"declarationDir": "./",
15+
"inlineSourceMap": true,
1516
}
1617
}

0 commit comments

Comments
 (0)