UNPKG
consumableai
Version:
latest (1.1.0)
1.1.0
## Overview
consumableai
/
dist
/
base.d.ts
12 lines
(11 loc)
•
275 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
type
Config
= {
apiKey
:
string
;
baseUrl
?:
string
; };
export
declare
abstract
class
Base
{
private
apiKey;
private
baseUrl;
constructor
(
config
:
Config
);
protected
request<T>(
endpoint
:
string
,
options
?:
RequestInit
):
Promise
<T>; }
export
{};