@grammyjs/conversations
Version:
Conversational interfaces for grammY
17 lines (16 loc) • 537 B
TypeScript
/**
* Creates an object that throws an error when touched in any way. This includes
*
* - getting a property
* - setting a property
* - calling the object
* - constructing the object
*
* and any of the other [object internal
* methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy#object_internal_methods)
* in JavaScript.
*
* @param msg An error message to use
* @typeParam The type of object to create
*/
export declare function youTouchYouDie<T extends object>(msg: string): T;