UNPKG

gatsby-source-prismic

Version:

Gatsby source plugin for building websites using Prismic as a data source

8 lines (7 loc) 337 B
/** * Determines if an object contains a given property. It augments the provided * object's type to include the property. * * @returns `true` if `obj` contains a `prop` property, `false` otherwise. */ export declare const hasOwnProperty: <X extends object, Y extends PropertyKey>(obj: X, prop: Y) => obj is X & Record<Y, unknown>;