UNPKG

textlint-rule-helper

Version:
6 lines (5 loc) • 229 B
/** * Return true if `types` includes `type`. * It compares with `===` like `types.some(t => t === type)`, without creating a closure. */ export declare const includesType: (types: readonly string[], type: string) => boolean;