Export POW interface

This commit is contained in:
Alex Gleason 2023-04-11 20:20:06 -05:00
parent fc690bd44c
commit 8428aab570
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 1 deletions

2
mod.ts
View File

@ -4,7 +4,7 @@ export { default as hellthreadPolicy, type Hellthread } from './src/policies/hel
export { default as keywordPolicy } from './src/policies/keyword-policy.ts';
export { default as noopPolicy } from './src/policies/noop-policy.ts';
export { default as openaiPolicy, type OpenAI, type OpenAIHandler } from './src/policies/openai-policy.ts';
export { default as powPolicy } from './src/policies/pow-policy.ts';
export { default as powPolicy, type POW } from './src/policies/pow-policy.ts';
export { default as pubkeyBanPolicy } from './src/policies/pubkey-ban-policy.ts';
export { default as rateLimitPolicy, type RateLimit } from './src/policies/rate-limit-policy.ts';
export { default as readOnlyPolicy } from './src/policies/read-only-policy.ts';

View File

@ -31,3 +31,5 @@ const powPolicy: Policy<POW> = ({ event }, opts = {}) => {
};
export default powPolicy;
export type { POW };