add TOKEN env
This commit is contained in:
12
index.d.ts
vendored
12
index.d.ts
vendored
@@ -11,6 +11,7 @@ export type subSearch = (params: {
|
||||
language?: string;
|
||||
time_range?: TimeRange;
|
||||
pageno?: number;
|
||||
signal?: AbortSignal;
|
||||
}) => Promise<Array<ResultItem>>;
|
||||
|
||||
export type searchAll = (params: {
|
||||
@@ -21,5 +22,14 @@ export type searchAll = (params: {
|
||||
number_of_results: number;
|
||||
enabled_engines: string[];
|
||||
unresponsive_engines: string[];
|
||||
results: Array<ResultItem>;
|
||||
results: Array<ResultItem & { engine: string }>;
|
||||
}>;
|
||||
|
||||
export interface Env {
|
||||
DEFAULT_TIMEOUT?: string;
|
||||
SUPPORTED_ENGINES?: string[];
|
||||
DEFAULT_ENGINES?: string[];
|
||||
GOOGLE_API_KEY?: string;
|
||||
GOOGLE_CX?: string;
|
||||
TOKEN?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user