-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
36 lines (31 loc) · 879 Bytes
/
types.ts
File metadata and controls
36 lines (31 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* @fileoverview Public type surface for `strings/*` modules — branded
* string types and option interfaces. Pure types, no runtime side
* effects.
*/
declare const BlankStringBrand: unique symbol
export type BlankString = string & { [BlankStringBrand]: true }
declare const EmptyStringBrand: unique symbol
export type EmptyString = string & { [EmptyStringBrand]: true }
export interface ApplyLinePrefixOptions {
/**
* The prefix to add to each line.
* @default ''
*/
prefix?: string | undefined
}
export interface IndentStringOptions {
/**
* Number of spaces to indent each line.
* @default 1
*/
count?: number | undefined
}
export interface SearchOptions {
/**
* The position in the string to begin searching from.
* Negative values count back from the end of the string.
* @default 0
*/
fromIndex?: number | undefined
}