Skip to content

Commit

Permalink
Regenerate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Dec 13, 2019
1 parent 451da17 commit fd01be7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/core/server/csp/csp_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
* under the License.
*/

import { CspConfigType, config } from './config';
import { config } from './config';

const DEFAULT_CONFIG = Object.freeze(config.schema.validate({}));

/**
* Csp configuration for use in Kibana.
* CSP configuration for use in Kibana.
* @public
*/
export interface ICspConfig {
Expand Down Expand Up @@ -66,7 +66,7 @@ export class CspConfig implements ICspConfig {
* Returns the default CSP configuration when passed with no config
* @internal
*/
constructor(rawCspConfig: Partial<CspConfigType> = {}) {
constructor(rawCspConfig: Partial<Omit<ICspConfig, 'header'>> = {}) {
const source = { ...DEFAULT_CONFIG, ...rawCspConfig };

this.rules = source.rules;
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export {
HandlerParameters,
} from './context';
export { CoreId } from './core_context';
export { CspConfig, ICspConfig, CspConfigType } from './csp';
export { CspConfig, ICspConfig } from './csp';
export {
ClusterClient,
IClusterClient,
Expand Down
4 changes: 1 addition & 3 deletions src/core/server/server.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,8 @@ export interface CoreStart {

// @public
export class CspConfig implements ICspConfig {
// Warning: (ae-forgotten-export) The symbol "CspConfigType" needs to be exported by the entry point index.d.ts
//
// @internal
constructor(rawCspConfig?: Partial<CspConfigType>);
constructor(rawCspConfig?: Partial<Omit<ICspConfig, 'header'>>);
// (undocumented)
static readonly DEFAULT: CspConfig;
// (undocumented)
Expand Down

0 comments on commit fd01be7

Please sign in to comment.