diff --git a/goldens/public-api/angular_devkit/schematics/src/index.md b/goldens/public-api/angular_devkit/schematics/src/index.md index a65d73a318b2..3864a36d18e9 100644 --- a/goldens/public-api/angular_devkit/schematics/src/index.md +++ b/goldens/public-api/angular_devkit/schematics/src/index.md @@ -588,9 +588,6 @@ export class InvalidUpdateRecordException extends BaseException { constructor(); } -// @public @deprecated (undocumented) -export function isAction(action: any): action is Action; - // @public (undocumented) export function isContentAction(action: Action): action is CreateFileAction | OverwriteFileAction; diff --git a/packages/angular_devkit/schematics/src/tree/action.ts b/packages/angular_devkit/schematics/src/tree/action.ts index 0b2084d33c82..65ad63bbdcdf 100644 --- a/packages/angular_devkit/schematics/src/tree/action.ts +++ b/packages/angular_devkit/schematics/src/tree/action.ts @@ -158,21 +158,6 @@ export function isContentAction(action: Action): action is CreateFileAction | Ov return action.kind == 'c' || action.kind == 'o'; } -/** - * @deprecated since version 11.0. not used anymore can be removed in future version. - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export function isAction(action: any): action is Action { - const kind = action && action.kind; - - return ( - action !== null && - typeof action.id == 'number' && - typeof action.path == 'string' && - (kind == 'c' || kind == 'o' || kind == 'r' || kind == 'd') - ); -} - // Create a file. If the file already exists then this is an error. export interface CreateFileAction extends ActionBase { readonly kind: 'c';