forked from tanner/qotnews
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
611 B
39 lines
611 B
/** |
|
* These declarations tell TypeScript that we allow import of images, e.g. |
|
* ``` |
|
<script lang='ts'> |
|
import successkid from 'images/successkid.jpg'; |
|
</script> |
|
|
|
<img src="{successkid}"> |
|
``` |
|
*/ |
|
declare module "*.gif" { |
|
const value: string; |
|
export = value; |
|
} |
|
|
|
declare module "*.jpg" { |
|
const value: string; |
|
export = value; |
|
} |
|
|
|
declare module "*.jpeg" { |
|
const value: string; |
|
export = value; |
|
} |
|
|
|
declare module "*.png" { |
|
const value: string; |
|
export = value; |
|
} |
|
|
|
declare module "*.svg" { |
|
const value: string; |
|
export = value; |
|
} |
|
|
|
declare module "*.webp" { |
|
const value: string; |
|
export = value; |
|
}
|
|
|