frame.tsx 566 B

123456789101112131415161718192021222324
  1. import type {Frame as FrameType} from 'sentry/types';
  2. export function Frame(props: Partial<FrameType> = {}): FrameType {
  3. return {
  4. absPath: 'abs/path/to/file.js',
  5. colNo: null,
  6. lineNo: null,
  7. context: [],
  8. errors: [],
  9. filename: 'file.js',
  10. function: 'functionName',
  11. inApp: true,
  12. instructionAddr: '0x0000000',
  13. module: 'abs.path.to:file',
  14. package: null,
  15. platform: 'javascript',
  16. rawFunction: 'functionName',
  17. symbol: 'functionName',
  18. symbolAddr: '0x0000000',
  19. trust: 'none',
  20. vars: {},
  21. ...props,
  22. };
  23. }