@synstack/str
Advanced tools
Comparing version
export { camelCase, capitalCase, constantCase, dotCase, kebabCase, noCase, pascalCase, pascalSnakeCase, pathCase, sentenceCase, snakeCase, trainCase } from 'change-case'; | ||
import { Pipeable } from '@synstack/pipe'; | ||
/** | ||
* A type serializable to string | ||
*/ | ||
type Stringable = { | ||
toString: () => string; | ||
toString(): string; | ||
}; | ||
declare class Str extends Pipeable<Str, string> { | ||
@@ -8,0 +12,0 @@ private readonly text; |
@@ -8,3 +8,3 @@ { | ||
"packageManager": "yarn@4.4.0", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Advanced chainable string manipulation", | ||
@@ -65,3 +65,3 @@ "keywords": [ | ||
], | ||
"gitHead": "5202068abb55d05288de38b20aa83fe5279eb2c6" | ||
"gitHead": "56d10a76fc60a7b06a4e5d97700fb0d0e8049910" | ||
} |
@@ -0,1 +1,2 @@ | ||
import { Stringable } from "@shared/ts.utils"; | ||
import { Pipeable } from "@synstack/pipe"; | ||
@@ -5,6 +6,2 @@ import * as changeCase from "change-case"; | ||
export type Stringable = { | ||
toString: () => string; | ||
}; | ||
export class Str extends Pipeable<Str, string> { | ||
@@ -11,0 +8,0 @@ public constructor(private readonly text: string) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
87669
0.05%1507
0.07%