mirror of
https://github.com/status-im/github-webhook-filter.git
synced 2026-08-31 10:41:12 +00:00
8 lines
236 B
TypeScript
8 lines
236 B
TypeScript
export function parseBool(s: string): boolean {
|
|
return ["1", "true", "on", "y", "yes"].includes(s.toLowerCase());
|
|
}
|
|
|
|
export function sleep(ms: number): Promise<void> {
|
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
}
|