Skip to content

Commit 8954d11

Browse files
committed
feat(@angular-devkit/schematics): remove deprecated isAction
BREAKING CHANGE: `isAction` has been removed without replacement as it was unused.
1 parent 36e53c0 commit 8954d11

File tree

2 files changed

+0
-18
lines changed
  • goldens/public-api/angular_devkit/schematics/src
  • packages/angular_devkit/schematics/src/tree

2 files changed

+0
-18
lines changed

goldens/public-api/angular_devkit/schematics/src/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,6 @@ export class InvalidUpdateRecordException extends BaseException {
588588
constructor();
589589
}
590590

591-
// @public @deprecated (undocumented)
592-
export function isAction(action: any): action is Action;
593-
594591
// @public (undocumented)
595592
export function isContentAction(action: Action): action is CreateFileAction | OverwriteFileAction;
596593

packages/angular_devkit/schematics/src/tree/action.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,6 @@ export function isContentAction(action: Action): action is CreateFileAction | Ov
158158
return action.kind == 'c' || action.kind == 'o';
159159
}
160160

161-
/**
162-
* @deprecated since version 11.0. not used anymore can be removed in future version.
163-
*/
164-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
165-
export function isAction(action: any): action is Action {
166-
const kind = action && action.kind;
167-
168-
return (
169-
action !== null &&
170-
typeof action.id == 'number' &&
171-
typeof action.path == 'string' &&
172-
(kind == 'c' || kind == 'o' || kind == 'r' || kind == 'd')
173-
);
174-
}
175-
176161
// Create a file. If the file already exists then this is an error.
177162
export interface CreateFileAction extends ActionBase {
178163
readonly kind: 'c';

0 commit comments

Comments
 (0)