11 lines
256 B
TypeScript
Executable File
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;
|