strfry-policies/src/policies/noop-policy.ts
2023-03-30 14:22:51 -05:00

11 lines
256 B
TypeScript
Executable File

import type { Policy } from '../types.ts';
/** Minimal sample policy for demonstration purposes. Allows all events through. */
const noopPolicy: Policy<void> = (msg) => ({
id: msg.event.id,
action: 'accept',
msg: '',
});
export default noopPolicy;