Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jul 30, 2023
1 parent 51c0003 commit 57f76fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
declare namespace Wili {
function monitor(rbl: StringNumbers, options: MonitorOptions): Promise<Record<string, unknown>>;
function newsList(options: NewsListOptions): Promise<Record<string, unknown>>;
function trafficInfoList(options: TrafficInfoOptions): Promise<Record<string, unknown>>;
function createWienerLinien(fetchParam?: (input: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>): {
monitor(rbl: StringNumbers, options: MonitorOptions): Promise<Record<string, unknown>>;
newsList(options: NewsListOptions): Promise<Record<string, unknown>>;
trafficInfoList(options: TrafficInfoOptions): Promise<Record<string, unknown>>;
}

type Fetch = (input: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
type StringNumbers = number | string | number[] | string[];
Expand Down

0 comments on commit 57f76fd

Please sign in to comment.