Chore: Move most types from rrweb to @rrweb/types package (#1031)
* Chore: Add move most types from rrweb to @rrweb/types package * Split off type imports * Split off type import to its own line * Get vite to generate type definitions * Apply formatting changes * noEmit not allowed in tsconfig, moved it to build step * Align version of @rrweb/types with main rrweb package Based on @mark-fenng's comments https://github.com/rrweb-io/rrweb/pull/1031/files#r1002298176 * Move up keywords
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
const events: eventWithTime[] = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
const events: eventWithTime[] = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
const events: eventWithTime[] = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
const events: eventWithTime[] = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
const events: eventWithTime[] = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
|
||||
import { EventType, IncrementalSource } from '@rrweb/types';
|
||||
import type { eventWithTime } from '@rrweb/types';
|
||||
|
||||
const now = Date.now();
|
||||
const events: eventWithTime[] = [
|
||||
|
||||
Reference in New Issue
Block a user