@nerdware/ddb-single-table
Version:
A schema-based DynamoDB modeling tool, high-level API, and type-generator built to supercharge single-table designs!⚡
9 lines • 458 B
TypeScript
/**
* A type-guard which returns a boolean indicating whether the following are all true:
*
* 1. `obj` is a truthy object
* 2. `obj` has the provided `key` as an own-property
* 3. `obj[key]` is neither `null` nor `undefined`
*/
export declare const hasDefinedProperty: <Obj extends Record<PropertyKey, any>, Key extends PropertyKey>(obj: Obj, key: Key) => obj is Obj & Record<Key, NonNullable<unknown>>;
//# sourceMappingURL=hasDefinedProperty.d.ts.map