Export POW interface
This commit is contained in:
parent
fc690bd44c
commit
8428aab570
2
mod.ts
2
mod.ts
@ -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 keywordPolicy } from './src/policies/keyword-policy.ts';
|
||||||
export { default as noopPolicy } from './src/policies/noop-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 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 pubkeyBanPolicy } from './src/policies/pubkey-ban-policy.ts';
|
||||||
export { default as rateLimitPolicy, type RateLimit } from './src/policies/rate-limit-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';
|
export { default as readOnlyPolicy } from './src/policies/read-only-policy.ts';
|
||||||
|
@ -31,3 +31,5 @@ const powPolicy: Policy<POW> = ({ event }, opts = {}) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default powPolicy;
|
export default powPolicy;
|
||||||
|
|
||||||
|
export type { POW };
|
||||||
|
Loading…
Reference in New Issue
Block a user