-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
34 lines (31 loc) · 963 Bytes
/
index.d.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
interface Stringifiable {
toString():string
}
interface Option {
/**
* A dictionary mapping resource markers to
* - a path to the resource, or
* - an object which contains info about a hypothetical path to the resource which will
* be used to extract file extension and caching and a Buffer|string holding the
* content.
*/
[resource_marker:string]:string|{
data:Stringifiable,
path:string }
/**
* A user-supplied string to be used as a resource marker prefix
* instead of "RESOURCE_". If it is not provided, a default value
* "RESOURCE_" will be used.
*/
__prefix?:string
}
declare class InlineResource {
constructor(option?:Option);
/**
* Performs the main operation of inlining. This method is bound
* to `this` at a construction time, so there is no need to bind
* again.
*/
inline(file:string):string
}
export = InlineResource;