Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188799
index.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
703 B
Referenced Files
None
Subscribers
None
index.d.ts
View Options
/// <reference types="koa__router" />
import
Router
from
"@koa/router"
;
import
{
Middleware
}
from
"koa"
;
export
default
class
KoaResponsiveImageRouter
extends
Router
{
static_path
:
string
;
tmp_dir
:
string
;
router
:
Router
;
hashToResolutions
:
Record
<
string
,
number
[]
>
;
constructor
(
static_path
:
string
,
tmp_dir
:
string
);
image
({
resolutions
,
sizes_attr
,
path
,
}
:
{
resolutions
:
number
[];
sizes_attr
:
string
;
path
:
string
;
})
:
Promise
<
string
>
;
getRoutes
()
:
Middleware
;
private
getHash
;
private
getHashedPath
;
private
generateDirectory
;
private
copySourceFile
;
private
getImage
;
private
saveImage
;
private
generateImage
;
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Jul 8, 08:32 (7 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
807062
Default Alt Text
index.d.ts (703 B)
Attached To
Mode
rRIMAGEROUTER koa-responsive-image-router
Attached
Detach File
Event Timeline
Log In to Comment