Skip to content

Commit

Permalink
fix global types with CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
DanDroryAu committed Jan 17, 2025
1 parent 0e284ba commit 8f2928f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions packages/sku/src/entry/csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ export type CSPHandler = {
handleHtml: (html: string) => string;
};

export type SkuCSP = {
enabled: boolean;
extraHosts: string[];
};

export default function createCSPHandler({
extraHosts = [],
isDevelopment = false,
Expand Down
7 changes: 5 additions & 2 deletions packages/sku/src/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { SkuCSP } from '../entry/csp.js';

declare module '__sku_alias__serverEntry';
declare module '__sku_alias__clientEntry';
declare module '__sku_alias__libraryEntry';
Expand All @@ -19,3 +17,8 @@ declare const __SKU_DEV_HTTPS__: boolean;

declare const __SKU_LIBRARY_NAME__: string;
declare const __SKU_LIBRARY_FILE__: string;

type SkuCSP = {
enabled: boolean;
extraHosts: string[];
};

0 comments on commit 8f2928f

Please sign in to comment.