@types/string
Advanced tools
Comparing version
@@ -8,67 +8,67 @@ // Type definitions for string.js | ||
length: number; | ||
s: string; | ||
between(left: string, right?: string): StringJS; | ||
camelize(): StringJS; | ||
capitalize(): StringJS; | ||
chompLeft(prefix: string): StringJS; | ||
chompRight(suffix: string): StringJS; | ||
collapseWhitespace(): StringJS; | ||
contains(ss: string): boolean; | ||
count(substring: string): number; | ||
dasherize(): StringJS; | ||
decodeHTMLEntities(): StringJS; | ||
endsWith(ss: string): boolean; | ||
escapeHTML(): StringJS; | ||
ensureLeft(prefix: string): StringJS; | ||
ensureRight(suffix: string): StringJS; | ||
humanize(): StringJS; | ||
include(ss: string): boolean; | ||
isAlpha(): boolean; | ||
isAlphaNumeric(): boolean; | ||
isEmpty(): boolean; | ||
isLower(): boolean; | ||
isNumeric(): boolean; | ||
isUpper(): boolean; | ||
latinise(): StringJS; | ||
left(n: number): StringJS; | ||
lines(): string[]; | ||
pad(len: number, char?: string|number): StringJS; | ||
padLeft(len: number, char?: string|number): StringJS; | ||
padRight(len: number, char?: string|number): StringJS; | ||
pad(len: number, char?: string | number): StringJS; | ||
padLeft(len: number, char?: string | number): StringJS; | ||
padRight(len: number, char?: string | number): StringJS; | ||
parseCSV(delimiter?: string, qualifier?: string, escape?: string, lineDelimiter?: string): string[]; | ||
repeat(n: number): StringJS; | ||
replaceAll(ss: string, newStr: string): StringJS; | ||
strip(...strings: string[]): StringJS; | ||
@@ -79,52 +79,52 @@ | ||
stripRight(...strings: string[]): StringJS; | ||
right(n: number): StringJS; | ||
setValue(string: any): StringJS; | ||
slugify(): StringJS; | ||
startsWith(prefix: string): boolean; | ||
stripPunctuation(): StringJS; | ||
stripTags(...tags: string[]): StringJS; | ||
template(values: Object, open?: string, close?: string): StringJS; | ||
times(n: number): StringJS; | ||
titleCase(): StringJS; | ||
toBoolean(): boolean; | ||
toCSV(delimiter?: string, qualifier?: string): StringJS; | ||
toCSV(options: { | ||
delimiter?: string | undefined, | ||
qualifier?: string | undefined, | ||
escape?: string | undefined, | ||
encloseNumbers?: boolean | undefined, | ||
keys?: boolean | undefined | ||
delimiter?: string | undefined; | ||
qualifier?: string | undefined; | ||
escape?: string | undefined; | ||
encloseNumbers?: boolean | undefined; | ||
keys?: boolean | undefined; | ||
}): StringJS; | ||
toFloat(precision?: number): number; | ||
toInt(): number; | ||
toInteger(): number; | ||
toString(): string; | ||
trim(): StringJS; | ||
trimLeft(): StringJS; | ||
trimRight(): StringJS; | ||
truncate(length: number, chars?: string): StringJS; | ||
underscore(): StringJS; | ||
unescapeHTML(): StringJS; | ||
wrapHTML(element?: string, attributes?: Object): StringJS; | ||
@@ -138,5 +138,5 @@ } | ||
TMPL_CLOSE: string; | ||
} | ||
}; | ||
export = S; | ||
export as namespace S; |
{ | ||
"name": "@types/string", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"description": "TypeScript definitions for string.js", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/string", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "4cbabb27c84060882821ec05c98fd6f59999bafae4a2a7d5e23252f4ab826f93", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "58736b738b55b0cd9c3b6c8649c5b1f9fed9dcf239fa229873a4b150c62f5d74", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 02 Jul 2021 22:33:01 GMT | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `S` |
5185
-3.93%