aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/docs/src/types.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/docs/src/types.d.ts')
-rw-r--r--subprojects/docs/src/types.d.ts33
1 files changed, 31 insertions, 2 deletions
diff --git a/subprojects/docs/src/types.d.ts b/subprojects/docs/src/types.d.ts
index 0d1b2226..658763e7 100644
--- a/subprojects/docs/src/types.d.ts
+++ b/subprojects/docs/src/types.d.ts
@@ -1,10 +1,39 @@
1/* 1/*
2 * SPDX-FileCopyrightText: 2024 The Refinery Authors 2 * Copyright (c) 2016, Jeremy Stucki
3 * Copyright (c) 2024 The Refinery Authors
3 * 4 *
4 * SPDX-License-Identifier: EPL-2.0 5 * SPDX-License-Identifier: BSD-3-Clause AND EPL-2.0
6 *
7 * Typings for `ResponsiveImageOutput` copied from
8 * https://github.com/dazuaz/responsive-loader/blob/ef2c806fcd36f06f6be8a0b97e09f40c3d86d3ac/README.md
5 */ 9 */
6 10
7declare module '*?url' { 11declare module '*?url' {
8 const url: string; 12 const url: string;
9 export default url; 13 export default url;
10} 14}
15
16declare module '*&url' {
17 const url: string;
18 export default url;
19}
20
21interface ResponsiveImageOutput {
22 src: string;
23 srcSet: string;
24 placeholder: string | undefined;
25 images: { path: string; width: number; height: number }[];
26 width: number;
27 height: number;
28 toString: () => string;
29}
30
31declare module '*?rl' {
32 const src: ResponsiveImageOutput;
33 export default src;
34}
35
36declare module '*&rl' {
37 const src: ResponsiveImageOutput;
38 export default src;
39}