Skip to content

Commit

Permalink
refactor: mappings type in csm.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesRijckaert committed Jan 2, 2024
1 parent 63357fc commit 81cac1e
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/live-preview-sdk/src/__tests__/csm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,8 @@ import { describe, test, expect } from 'vitest';
import { encodeSourceMap } from '../csm';
import { vercelStegaDecode } from '@vercel/stega';

type Mappings = {
[key: string]:
| {
origin: string;
href: string;
}
| {
[nestedKey: string]: {
origin: string;
href: string;
};
}
| undefined;
};
type Mapping = { origin: string; href: string };
type Mappings = Record<string, Mapping | Record<string, Mapping> | undefined>;

type EncodedResponse =
| {
Expand Down

0 comments on commit 81cac1e

Please sign in to comment.