mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-29 19:21:33 -07:00
10 lines
368 B
TypeScript
10 lines
368 B
TypeScript
import { isNotificationType, type NotificationType } from '../../../types/notification';
|
|
|
|
export function asNotificationType(value: unknown): NotificationType | undefined {
|
|
return isNotificationType(value) ? value : undefined;
|
|
}
|
|
|
|
export function hasOwn(obj: Record<string, unknown>, key: string): boolean {
|
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
}
|