Added path-events
All checks were successful
Build / Build NPM Project (push) Successful in 31s
Build / Tag Version (push) Successful in 7s
Build / Publish Documentation (push) Successful in 28s

This commit is contained in:
2024-10-14 13:52:03 -04:00
parent c51239d12b
commit 379de273c4
6 changed files with 271 additions and 10 deletions

View File

@ -1,3 +1,4 @@
import {PathEvent} from './path-events.ts';
import {md5} from './string';
/**
@ -21,3 +22,6 @@ export function gravatar(email: string, def='mp') {
export function escapeRegex(value: string) {
return value.replace(/[.*+?^${}()|\[\]\\]/g, '\\$&');
}
export type Listener = (event: PathEvent, ...args: any[]) => any;
export type Unsubscribe = () => void;