Skip to content

Commit

Permalink
chore: some env fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
khskekec committed Mar 22, 2022
1 parent 1be2023 commit d45b920
Show file tree
Hide file tree
Showing 6 changed files with 450 additions and 287 deletions.
35 changes: 22 additions & 13 deletions lib/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,28 @@ import { AxiosRequestConfig } from 'axios';
import schedule from 'node-schedule';
import { CGMDataType } from './utils';
declare type DexcomApiClientType = {
username: string;
password: string;
server: 'US' | 'EU';
clientOpts?: AxiosRequestConfig;
username: string;
password: string;
server: 'US' | 'EU';
clientOpts?: AxiosRequestConfig;
};
export declare const DexcomApiClient: ({ username, password, server, clientOpts, }: DexcomApiClientType) => {
login: () => Promise<void>;
read: (minutesAgo?: number, count?: number) => Promise<CGMDataType[]>;
readLast: () => Promise<CGMDataType[]>;
observe: ({ maxAttempts, delay, listener, }: {
maxAttempts?: number | undefined;
delay?: number | undefined;
listener: (data: CGMDataType) => void;
}) => Promise<schedule.Job>;
export declare const DexcomApiClient: ({
username,
password,
server,
clientOpts,
}: DexcomApiClientType) => {
login: () => Promise<void>;
read: (minutesAgo?: number, count?: number) => Promise<CGMDataType[]>;
readLast: () => Promise<CGMDataType[]>;
observe: ({
maxAttempts,
delay,
listener,
}: {
maxAttempts?: number | undefined;
delay?: number | undefined;
listener: (data: CGMDataType) => void;
}) => Promise<schedule.Job>;
};
export {};
Loading

0 comments on commit d45b920

Please sign in to comment.