UNPKG

string-similarity-coloring

Version:

Color a given set of N strings into a set of M<N color classes

12 lines (11 loc) 371 B
import Theme from './themes'; import { ColorSet } from './ColorSet'; declare type SpecifiedColorSet = { colorSet: ColorSet; }; declare type SpecifiedTheme = { theme: Theme; }; declare type Options = Partial<SpecifiedColorSet> & Partial<SpecifiedTheme>; export declare function hasColorSet(options?: Options): options is SpecifiedColorSet; export default Options;