Skip to content

Commit 14e5406

Browse files
committed
type fix
1 parent d3d6e2b commit 14e5406

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

src/Options/docs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export interface ParseServerOptions {
228228
encodeParseObjectInCloudFunction: ?boolean;
229229
/* Optional. The public URL to Parse Server. This URL will be used to reach Parse Server publicly for features like password reset and email verification links. The option can be set to a string or a function that can be asynchronously resolved. The returned URL must start with http:// or https://.
230230
:ENV: PARSE_PUBLIC_SERVER_URL */
231-
publicServerURL: ?string;
231+
publicServerURL: ?(string | (() => string) | (() => Promise<string>));
232232
/* The options for pages such as password reset and email verification.
233233
:DEFAULT: {} */
234234
pages: ?PagesOptions;

types/Options/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export interface ParseServerOptions {
8585
cacheAdapter?: Adapter<CacheAdapter>;
8686
emailAdapter?: Adapter<MailAdapter>;
8787
encodeParseObjectInCloudFunction?: boolean;
88-
publicServerURL?: string | (() => string) | Promise<string>;
88+
publicServerURL?: string | (() => string) | (() => Promise<string>);
8989
pages?: PagesOptions;
9090
customPages?: CustomPagesOptions;
9191
liveQuery?: LiveQueryOptions;

types/ParseServer.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ declare class ParseServer {
2626
* @returns {Promise<void>} a promise that resolves when the server is stopped
2727
*/
2828
handleShutdown(): Promise<void>;
29+
/**
30+
* @static
31+
* Allow developers to customize each request with inversion of control/dependency injection
32+
*/
33+
static applyRequestContextMiddleware(api: any, options: any): void;
2934
/**
3035
* @static
3136
* Create an express app for the parse server

0 commit comments

Comments
 (0)