make the deprecation discoverable from TSC (#18856)
This commit is contained in:
@@ -105,9 +105,8 @@ export class UmbBlockGridManagerContext<
|
||||
// This property is used by some implementations, but not used in this. Do not remove. [NL]
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
_originData?: UmbBlockGridWorkspaceOriginData,
|
||||
) {
|
||||
): never {
|
||||
throw new Error('Method deparecated use createWithPresets');
|
||||
return {} as UmbBlockDataObjectModel<BlockLayoutType>;
|
||||
}
|
||||
|
||||
async createWithPresets(
|
||||
|
||||
@@ -35,9 +35,8 @@ export class UmbBlockListManagerContext<
|
||||
// This property is used by some implementations, but not used in this. Do not remove. [NL]
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
_originData?: UmbBlockListWorkspaceOriginData,
|
||||
) {
|
||||
): never {
|
||||
throw new Error('Method deparecated use createWithPresets');
|
||||
return {} as UmbBlockDataObjectModel<BlockLayoutType>;
|
||||
}
|
||||
async createWithPresets(
|
||||
contentElementTypeKey: string,
|
||||
|
||||
@@ -32,9 +32,8 @@ export class UmbBlockRteManagerContext<
|
||||
// This property is used by some implementations, but not used in this. Do not remove. [NL]
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
_originData?: UmbBlockRteWorkspaceOriginData,
|
||||
) {
|
||||
): never {
|
||||
throw new Error('Method deparecated use createWithPresets');
|
||||
return {} as UmbBlockDataObjectModel<BlockLayoutType>;
|
||||
}
|
||||
async createWithPresets(
|
||||
contentElementTypeKey: string,
|
||||
|
||||
@@ -334,7 +334,7 @@ export abstract class UmbBlockManagerContext<
|
||||
contentElementTypeKey: string,
|
||||
partialLayoutEntry?: Omit<BlockLayoutType, 'contentKey'>,
|
||||
originData?: BlockOriginDataType,
|
||||
): UmbBlockDataObjectModel<BlockLayoutType> | undefined;
|
||||
): never;
|
||||
|
||||
abstract createWithPresets(
|
||||
contentElementTypeKey: string,
|
||||
|
||||
Reference in New Issue
Block a user