Repository navigation
Expand file tree
/
Copy pathukadll.d.ts
More file actions
31 lines (30 loc) · 1.63 KB
/
Copy pathukadll.d.ts
File metadata and controls
31 lines (30 loc) · 1.63 KB
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
declare module 'ukadll' {
export class UkaDll {
/**
* Loading a dll file and create an instance of UkaDll class.
*
* Can be [SHIORI](https://ssp.shillest.net/ukadoc/manual/spec_shiori3.html)/[SAORI](http://www.boreas.dti.ne.jp/~sdn/saori.html)/[PLUGIN](https://ssp.shillest.net/ukadoc/manual/spec_plugin.html)/[HEADLINE](https://ssp.shillest.net/ukadoc/manual/spec_headline.html), follow [Ukagaka Dll Spec](https://ssp.shillest.net/ukadoc/manual/spec_dll.html) for more details.
* @param dllPath dll file location of you want to loading
*/
constructor(dllPath: string);
/**
* Will to run dll's load/loadu function
* @param basePath Moudle's Base Path
*/
load(basePath: string): boolean;
/**
* Will to run dll's unload/unload function, and release the dll file.
* if you run this function, the instance of UkaDll will be unusable, and you should create a new instance to load the dll file again.
*/
unload(): boolean;
/**
* follow [Ukagaka Dll Spec](https://ssp.shillest.net/ukadoc/manual/spec_dll.html) for more details about the request function.
*
* @param rawRequest Raw [SHIORI](https://ssp.shillest.net/ukadoc/manual/spec_shiori3.html)/[SAORI](http://www.boreas.dti.ne.jp/~sdn/saori.html)/[PLUGIN](https://ssp.shillest.net/ukadoc/manual/spec_plugin.html)/[HEADLINE](https://ssp.shillest.net/ukadoc/manual/spec_headline.html) protocol request string.
*/
request(rawRequest: string):string;
}
}
declare module 'ukadll.dll'{
export * from 'ukadll';
}