mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-16 04:12:56 -06:00
Switch URIPatterns to TypeValidators, Record, add typing to Object.entries with type-fest pkg
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import type { SyntheticEvent } from "react";
|
||||
import type { Entries } from "type-fest";
|
||||
|
||||
declare global {
|
||||
interface ObjectConstructor {
|
||||
entries<T extends object>(o: T): Entries<T>
|
||||
}
|
||||
}
|
||||
|
||||
export function truthy(value: string | null | undefined) {
|
||||
if (value == undefined) return false;
|
||||
|
||||
Reference in New Issue
Block a user