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:
@@ -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',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user