File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type NarouNovel from "./narou.js" ;
2+ import type { ExecuteOptions } from "./narou.js" ;
23import NarouNovelJsonp from "./narou-jsonp.js" ;
34import SearchBuilder from "./search-builder.js" ;
45import SearchBuilderR18 from "./search-builder-r18.js" ;
@@ -67,13 +68,16 @@ export function ranking(api: NarouNovel = narouNovelJsonp): RankingBuilder {
6768/**
6869 * なろう殿堂入り API でランキング履歴を取得する
6970 * @param {string } ncode 小説のNコード
71+ * @param {ExecuteOptions } [options] 実行オプション
72+ * @param {NarouNovel } [api] API実行クラスのインスタンス
7073 * @see https://dev.syosetu.com/man/rankinapi/
7174 */
7275export async function rankingHistory (
7376 ncode : string ,
77+ options ?: ExecuteOptions ,
7478 api : NarouNovel = narouNovelJsonp
7579) : Promise < RankingHistoryResult [ ] > {
76- const result = await api . executeRankingHistory ( { ncode } ) ;
80+ const result = await api . executeRankingHistory ( { ncode } , options ) ;
7781 if ( Array . isArray ( result ) ) {
7882 return result . map ( formatRankingHistory ) ;
7983 } else {
You can’t perform that action at this time.
0 commit comments