Skip to main content

SourceMappedStringI

export type SourceMappedStringI = {
  content: string | SourceMappedStringI[]
  site: Site | undefined
  flatten(): SourceMappedStringI[]
  includes(str: string): boolean
  join(sep: string): SourceMappedStringI
  replace(
    re: RegExp,
    newStr: string
  ): SourceMappedStringI
  search(
    re: RegExp,
    callback: (match: string) => void
  ): void
  toString(
    tab: string,
    pretty: boolean
  ): string
  toStringWithSourceMap(tab: string): [string, SourceMap]
}