-
Notifications
You must be signed in to change notification settings - Fork 669
/
Copy pathtypes.ts
46 lines (42 loc) · 1.3 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
export interface RouteConfig {
/**
* A route override for the page. This is useful for pages where the route
* can not be expressed through the filesystem routing capabilities.
*
* The route override must be a path-to-regexp compatible route matcher.
*/
routeOverride?: string;
/**
* If Content-Security-Policy should be enabled for this page. If 'true', a
* locked down policy will be used that allows only the scripts and styles
* that are generated by Fresh. Additional scripts and styles can be added
* using the `useCSP` hook.
*/
csp?: boolean;
/**
* Skip already inherited layouts
* Default: `false`
*/
skipInheritedLayouts?: boolean;
/**
* Skip rendering the `routes/_app` template
* Default: `false`
*/
skipAppWrapper?: boolean;
}
// TODO: Uncomment once JSR supports global types
// declare global {
// namespace preact.createElement.JSX {
// interface HTMLAttributes {
// /**
// * Alternative url to fetch partials from on `<a>` or `<form>` tags
// */
// "f-partial"?: string | SignalLike<string>;
// /**
// * Enable or disable client side navigation and partials for this
// * particular node and its children.
// */
// "f-client-nav"?: boolean | SignalLike<boolean>;
// }
// }
// }