UNPKG

islamarchive-sdk

Version:

SDK to interact with islamarchive.cc API

25 lines (22 loc) 520 B
type Book = { firstPageId: number; id: number; lastPageId: number; name: string; }; type Bookmark = { id: string; link: string; parent?: string; text: string; }; type Page = { id: number; index?: number; text: string; title: string; }; declare const getBook: (id: number) => Promise<Book>; declare const getPage: (book: number, page: number) => Promise<Page>; declare const getBookmarks: (book: number) => Promise<Bookmark[]>; export { getBook, getBookmarks, getPage };