Improve types

This commit is contained in:
dangered wolf 2023-04-12 17:08:52 -04:00
parent 4a53a760e6
commit 7c2de0b6a8
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 5 additions and 6 deletions

8
src/types/env.d.ts vendored
View file

@ -15,9 +15,5 @@ declare const RELEASE_NAME: string;
declare const TEST: boolean | undefined; declare const TEST: boolean | undefined;
declare const TwitterProxy: { declare const TwitterProxy: Fetcher;
fetch: ( declare const AnalyticsEngine: AnalyticsEngineDataset;
input: RequestInfo<unknown, CfProperties<unknown>>,
init?: RequestInit<RequestInitCfProperties> | undefined
) => Promise<Response>;
};

View file

@ -6,6 +6,9 @@ send_metrics = false
services = [ services = [
{ binding = "TwitterProxy", service = "elongator" } { binding = "TwitterProxy", service = "elongator" }
] ]
analytics_engine_datasets = [
{ binding = "AnalyticsEngine" }
]
[build] [build]
command = "npm run build" command = "npm run build"