release-2021-06-01 packages/core-plugin-api/src/apis/system/ApiRef.ts:27

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
Colton Padden
2021-12-14 14:03:55 -05:00
parent e56c95a941
commit 345dcea560
41 changed files with 0 additions and 57 deletions
@@ -23,10 +23,6 @@ import type { ApiRef } from './types';
*/
export type ApiRefConfig = {
id: string;
/**
* @deprecated Will be removed in the future
*/
description?: string;
};
class ApiRefImpl<T> implements ApiRef<T> {
@@ -46,12 +42,6 @@ class ApiRefImpl<T> implements ApiRef<T> {
return this.config.id;
}
get description() {
// eslint-disable-next-line no-console
console.warn('Deprecated use of ApiRef.description');
return this.config.description;
}
// Utility for getting type of an api, using `typeof apiRef.T`
get T(): T {
throw new Error(`tried to read ApiRef.T of ${this}`);
@@ -45,5 +45,4 @@ export class ScmIntegrationsApi {
export const scmIntegrationsApiRef: ApiRef<ScmIntegrationRegistry> =
createApiRef({
id: 'integration.scmintegrations',
description: 'All of the registered SCM integrations of your config',
});