UNPKG

@rbxts/jsnatives

Version:

A TypeScript library for Roblox that provides JavaScript-like native functionality, including Proxy, Object utilities, setTimeout/setInterval, JSON, and more.

23 lines (22 loc) 475 B
/** * The Error object. */ export interface Error { message: string; name: string; stack?: string; } /** * The Error constructor. */ interface ErrorConstructor { /** * Creates a new Error object. * @param message - The message of the error. * @returns A new Error object. */ new (message?: string): Error; (message?: string): Error; readonly captureStackTrace: (error: Error, options?: Callback) => void; } export const Error: ErrorConstructor;