UNPKG

@readium/shared

Version:

Shared models to be used across other Readium projects and implementations in Typescript

7 lines (6 loc) 142 B
/** * A tokenizer splits a piece of data [D] into a list of [T] tokens. */ export interface Tokenizer<D, T> { tokenize(data: D): T[]; }