From 4f13f2c7788b25e17603219fa4d58a3cd0dabbc9 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 23 Mar 2020 09:40:19 +0100 Subject: [PATCH] core/apis/errors: rename to error and don't export Error type --- packages/core/src/api/apis/definitions/{errors.ts => error.ts} | 2 +- packages/core/src/api/apis/definitions/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/core/src/api/apis/definitions/{errors.ts => error.ts} (98%) diff --git a/packages/core/src/api/apis/definitions/errors.ts b/packages/core/src/api/apis/definitions/error.ts similarity index 98% rename from packages/core/src/api/apis/definitions/errors.ts rename to packages/core/src/api/apis/definitions/error.ts index eb195898d2..01a6509715 100644 --- a/packages/core/src/api/apis/definitions/errors.ts +++ b/packages/core/src/api/apis/definitions/error.ts @@ -20,7 +20,7 @@ import ApiRef from '../ApiRef'; * Mirrors the javascript Error class, for the purpose of * providing documentation and optional fields. */ -export type Error = { +type Error = { name: string; message: string; stack?: string; diff --git a/packages/core/src/api/apis/definitions/index.ts b/packages/core/src/api/apis/definitions/index.ts index 02d2b893a6..bdf2a0b6a2 100644 --- a/packages/core/src/api/apis/definitions/index.ts +++ b/packages/core/src/api/apis/definitions/index.ts @@ -20,4 +20,4 @@ // // If you think some API definition is missing, please open an Issue or send a PR! -export * from './errors'; +export * from './error';