Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F21588959
index.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
index.d.ts
View Options
/// <reference types="koa__router" />
import
Router
from
"@koa/router"
;
import
sharp
from
"sharp"
;
import
{
Middleware
}
from
"koa"
;
export
default
class
KoaResponsiveImageRouter
extends
Router
{
static_path
:
string
;
router
:
Router
;
hashToResolutions
:
Record
<
string
,
number
[]
>
;
hashToLossless
:
Record
<
string
,
boolean
>
;
hashToMetadata
:
Record
<
string
,
Promise
<
sharp
.
Metadata
>
|
undefined
>
;
hashToOriginalPath
:
Record
<
string
,
string
>
;
nginxWarningDisplayed
:
boolean
;
constructor
(
static_path
:
string
);
getMetadata
(
hash
:
string
)
:
Promise
<
sharp
.
Metadata
>
;
private
makeImageURL
;
makeNginxConfig
(
cache_path
:
string
,
max_size_mb
:
number
)
:
string
;
image
({
resolutions
,
sizes_attr
,
path
,
lossless
,
lazy
,
img_style
,
target_ratio
,
ratio_diff_threshold
,
}
:
{
resolutions
?:
number
[];
sizes_attr
:
string
;
path
:
string
;
lossless
?:
boolean
;
lazy
?:
boolean
;
img_style
?:
string
;
target_ratio
?:
number
;
ratio_diff_threshold
?:
number
;
})
:
Promise
<
string
>
;
getRoutes
()
:
Middleware
;
private
getHash
;
private
generateImage
;
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 7, 15:54 (15 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1181900
Default Alt Text
index.d.ts (1 KB)
Attached To
Mode
rRIMAGEROUTER koa-responsive-image-router
Attached
Detach File
Event Timeline