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.