github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/models/annotation.ts (about)

     1  import { z } from 'zod';
     2  
     3  export const AnnotationSchema = z.object({
     4    content: z.string(),
     5    // TODO(eh-am): validate it's a valid unix timestamp
     6    timestamp: z.number(),
     7  });
     8  
     9  export type Annotation = z.infer<typeof AnnotationSchema>;