@types/string-algorithms
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/string-algorithms

Summary

This package contains type definitions for string-algorithms (https://github.com/burgaard/string-algorithms).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/string-algorithms.

index.d.ts

export function search(text: string, term: string): number[];

export function radixSort<T>(
    ...args: T extends number[] ? [entries: T[], getEntry?: (el: T) => number[]]
        : [entries: T[], getEntry: (el: T) => number[]]
): number[][];

export function suffixArray(s: number[] | string, terminator?: number): number[];

export function longestCommonPrefix(sequence: string[], suffixArray: number[]): number[];

export function longestCommonSubstring(strings: string[], indexMap?: "log" | "linear" | StringIndexMap): string[];

export abstract class StringIndexMap {
    constructor(k?: number);
    add(length: number): number;
    lookup(suffix: number, start: number, end: number): number;
    toString(): string;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Lionel Rowe.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/string-algorithms

Weekly Downloads

546

Version

1.0.3

License

MIT

Unpacked Size

4.07 kB

Total Files

5

Last publish

Collaborators

  • types