chore: abstract types to shared package (#1593)
* chore: update types * small typing change * fix typing issue * typed node * add extra lint skip * add changeset --------- Co-authored-by: Eoghan Murray <eoghan@getthere.ie> Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
This commit is contained in:
@@ -7,12 +7,12 @@ import postcss, { type AcceptedPlugin } from 'postcss';
|
||||
import { JSDOM } from 'jsdom';
|
||||
import { splitCssText, stringifyStylesheet } from './../src/utils';
|
||||
import { applyCssSplits } from './../src/rebuild';
|
||||
import {
|
||||
NodeType,
|
||||
type serializedElementNodeWithId,
|
||||
type BuildCache,
|
||||
type textNode,
|
||||
import type {
|
||||
serializedElementNodeWithId,
|
||||
BuildCache,
|
||||
textNode,
|
||||
} from '../src/types';
|
||||
import { NodeType } from '@rrweb/types';
|
||||
import { Window } from 'happy-dom';
|
||||
|
||||
describe('css parser', () => {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
buildNodeWithSN,
|
||||
createCache,
|
||||
} from '../src/rebuild';
|
||||
import { NodeType } from '../src/types';
|
||||
import { NodeType } from '@rrweb/types';
|
||||
import { createMirror, Mirror, normalizeCssString } from '../src/utils';
|
||||
|
||||
const expect = _expect as unknown as {
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
* @vitest-environment jsdom
|
||||
*/
|
||||
import { describe, it, test, expect } from 'vitest';
|
||||
import { NodeType, serializedNode } from '../src/types';
|
||||
import {
|
||||
escapeImportStatement,
|
||||
extractFileExtension,
|
||||
fixSafariColons,
|
||||
isNodeMetaEqual,
|
||||
} from '../src/utils';
|
||||
import type { serializedNodeWithId } from 'rrweb-snapshot';
|
||||
import { NodeType } from '@rrweb/types';
|
||||
import type { serializedNode, serializedNodeWithId } from '@rrweb/types';
|
||||
|
||||
describe('utils', () => {
|
||||
describe('isNodeMetaEqual()', () => {
|
||||
|
||||
Reference in New Issue
Block a user