redacted-ts
Version:
Redacting classified documents
10 lines (9 loc) • 376 B
TypeScript
export interface Dictionary {
words: ReadonlyArray<string>;
contains: (word: string) => boolean;
isEmpty: () => boolean;
length: () => number;
toString: () => string;
}
export declare const Dictionary: (words: ReadonlyArray<string>) => Dictionary;
export declare const stringToDictionary: (str: string, ...delimiters: ReadonlyArray<string>) => Dictionary;