fvtt-types
Version:
TypeScript type definitions for Foundry VTT
13 lines (11 loc) • 359 B
text/typescript
export {};
declare global {
interface RegExpConstructor {
/**
* Escape a given input string, prefacing special characters with backslashes for use in a regular expression
* @param string - The un-escaped input string
* @returns The escaped string, suitable for use in regular expression
*/
escape(string: string): string;
}
}