MCPcopy Create free account
hub / github.com/effect-app/libs / String

Interface String

packages/effect-app/src/builtin.ts:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5declare global {
6 interface String {
7 /**
8 * Split a string into substrings using the specified separator and return them as an array.
9 * @param splitter An object that can split a string.
10 * @param limit A value used to limit the number of elements returned in the array.
11 */
12 split(splitter: { [Symbol.split](string: string, limit?: number): string[] }, limit?: number): [string, ...string[]]
13
14 /**
15 * Split a string into substrings using the specified separator and return them as an array.
16 * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
17 * @param limit A value used to limit the number of elements returned in the array.
18 */
19 split(separator: string | RegExp, limit?: number): [string, ...string[]]
20 }
21
22 // JSON.parse / Body.json overrides live in ./builtin-json.d.ts (referenced
23 // above) so a source-linked consumer can disable them in linked mode.

Callers 15

sql-store.test.tsFile · 0.50
GetThingFunction · 0.50
rawFunction · 0.50
effectFunction · 0.50
annotateCosmosResponseFunction · 0.50
execFunction · 0.50
ClusterCosmos.tsFile · 0.50
storageNotificationFunction · 0.50
logFmtLogger.tsFile · 0.50
getErrorMessageFunction · 0.50
sqlErrorMessageFunction · 0.50

Implementers 1

ChunkedMessagerepos/effect/packages/effect/src/unsta

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…