Skip to content

Commit fb5312b

Browse files
committed
update ultraviolet types
1 parent 6ddb73e commit fb5312b

3 files changed

Lines changed: 7 additions & 17 deletions

File tree

client.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare const Ultraviolet: typeof import('./uv').Ultraviolet;
2+
3+
declare var __uv$config: import('./uv').UVConfig;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
},
1111
"files": [
1212
"dist",
13-
"lib"
13+
"lib",
14+
"uv.d.ts",
15+
"client.d.ts"
1416
],
1517
"type": "module",
1618
"scripts": {

uv.d.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,6 @@ export type UVDecode = (input: Coded) => string;
2626
* This interface defines the configuration options for the Ultraviolet library.
2727
*/
2828
export interface UVConfig {
29-
/**
30-
* The Bare server(s) to use.
31-
* If an array is specified, the service worker will randomly select a server to use.
32-
* The selected server will be used for the duration of the session.
33-
* Both relative and absolute paths are accepted. Relative paths are resolved to the current URL.
34-
* @example // A Bare server running on the subdomain `bare.`, automatically correcting the apex record:
35-
* `${location.protocol}//bare.${location.host.replace(/^www\./, "")}
36-
* @example `http://localhost:8080/`
37-
* @example `http://localhost:8080/bare/`
38-
* @defaultValue `/bare/`
39-
* @see {@link|https://github.com/tomphttp/specifications/blob/master/BareServer.md}
40-
*/
41-
bare?: string | string[];
4229
/**
4330
* The prefix for Ultraviolet to listen on.
4431
* This prefix will be used to create the URL for the service worker and the client script.
@@ -101,6 +88,4 @@ export interface UVConfig {
10188
* @defaultValue `Ultraviolet.codec.xor.decode`
10289
*/
10390
decodeUrl?: UVDecode;
104-
proxyIp?: string;
105-
proxyPort?: number;
106-
}
91+
}

0 commit comments

Comments
 (0)