Add Docs for Server Config Definitions (#5581)

* Add Docs for Server Config Definitions

* protected field and sort alphabetically

* Add links

* nits
This commit is contained in:
Diamond Lewis
2019-05-11 15:25:31 -05:00
committed by GitHub
parent 90c81c1750
commit b9c936f594
8 changed files with 420 additions and 416 deletions

View File

@@ -9,6 +9,7 @@ import { PubSubAdapter } from '../Adapters/PubSub/PubSubAdapter';
// @flow
type Adapter<T> = string | any | T;
type NumberOrBoolean = number | boolean;
type ProtectedFields = any;
export interface ParseServerOptions {
/* Your Parse Application ID
@@ -86,7 +87,7 @@ export interface ParseServerOptions {
userSensitiveFields: ?(string[]);
/* Protected fields that should be treated with extra security when fetching details.
:DEFAULT: {"_User": {"*": ["email"]}} */
protectedFields: ?any;
protectedFields: ?ProtectedFields;
/* Enable (or disable) anon users, defaults to true
:ENV: PARSE_SERVER_ENABLE_ANON_USERS
:DEFAULT: true */