mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-22 21:25:07 +00:00
7 lines
183 B
TypeScript
7 lines
183 B
TypeScript
export function preventDefault(fn: (event: Event) => void): (event: Event) => void {
|
|
return function (this: unknown, event) {
|
|
event.preventDefault();
|
|
fn.call(this, event);
|
|
};
|
|
}
|