UNPKG

830 BSource Map (JSON)View Raw
1{"version":3,"file":"request.js","sourceRoot":"","sources":["../src/request.ts"],"names":[],"mappings":"","sourcesContent":["/** Possible SentryRequest types that can be used to make a distinction between Sentry features */\nexport type SentryRequestType = 'event' | 'transaction' | 'session' | 'attachment';\n\n/** A generic client request. */\nexport interface SentryRequest {\n body: string;\n type: SentryRequestType;\n url: string;\n}\n\n/** Request data included in an event as sent to Sentry */\nexport interface Request {\n url?: string;\n method?: string;\n data?: any;\n query_string?: QueryParams;\n cookies?: { [key: string]: string };\n env?: { [key: string]: string };\n headers?: { [key: string]: string };\n}\n\nexport type QueryParams = string | { [key: string]: string } | Array<[string, string]>;\n"]}
\No newline at end of file