chore: fix lint issues

This commit is contained in:
41666 2021-08-01 16:30:58 -04:00
parent 5334353c84
commit 462ef26ea2
8 changed files with 27 additions and 3 deletions

View file

@ -1,4 +1,4 @@
import { WrappedKVNamespace } from './kv';
import { WrappedKVNamespace } from '@roleypoly/worker-utils';
export const useRateLimiter =
(kv: WrappedKVNamespace, key: string, timeoutSeconds: number) =>

7
packages/interactions/bindings.d.ts vendored Normal file
View file

@ -0,0 +1,7 @@
export {};
declare global {
const DISCORD_PUBLIC_KEY: string;
const UI_PUBLIC_URI: string;
const API_PUBLIC_URI: string;
}

View file

@ -10,6 +10,7 @@
"@cloudflare/workers-types": "^2.2.2",
"@roleypoly/types": "*",
"@roleypoly/worker-utils": "*",
"@types/node": "^16.4.10",
"tweetnacl": "^1.0.3"
}
}

View file

@ -2,7 +2,7 @@
"compilerOptions": {
"outDir": "./dist",
"lib": ["esnext", "webworker", "ES2020.BigInt", "ES2020.Promise"],
"types": ["@cloudflare/workers-types"],
"types": ["@cloudflare/workers-types", "node"],
"target": "ES2019"
},
"include": [

View file

@ -1,6 +1,9 @@
{
"name": "@roleypoly/worker-utils",
"version": "0.1.0",
"scripts": {
"lint:types": "tsc --noEmit"
},
"devDependencies": {
"@cloudflare/workers-types": "^2.2.2"
}