dbaas
Version:
Database as a service. Expose db to REST and GraphQL.
4 lines (3 loc) • 328 B
TypeScript
export declare const isObject: (obj: unknown) => obj is Record<PropertyKey, unknown>;
export declare const isKeyValue: (obj: unknown) => obj is Record<string, string>;
export declare function hasProperty<T extends Record<PropertyKey, unknown>, K extends PropertyKey>(value: T, propertyName: K): value is Record<K, unknown> & T;