mirror of https://gitee.com/antv-l7/antv-l7
20 lines
363 B
TypeScript
20 lines
363 B
TypeScript
declare module 'reading-time' {
|
|
interface IOptions {
|
|
wordBound?: () => boolean;
|
|
wordsPerMinute?: number;
|
|
}
|
|
|
|
interface IReadTimeResults {
|
|
text: string;
|
|
time: number;
|
|
words: number;
|
|
minutes: number;
|
|
}
|
|
|
|
function readingTime(text: string, options?: IOptions): IReadTimeResults;
|
|
|
|
namespace readingTime {}
|
|
|
|
export = readingTime;
|
|
}
|