Skip to content

Commit 8880e1c

Browse files
santoshyadavdevalan-agius4
authored andcommitted
refactor(@angular-devkit/schematics): deprecate isAction
1 parent b2f0f07 commit 8880e1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/angular_devkit/schematics/src/sink/sink.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {
2727
OverwriteFileAction,
2828
RenameFileAction,
2929
UnknownActionException,
30-
isAction,
3130
} from '../tree/action';
3231
import { Tree } from '../tree/interface';
3332

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ export function isContentAction(action: Action): action is CreateFileAction | Ov
156156
return action.kind == 'c' || action.kind == 'o';
157157
}
158158

159-
159+
/**
160+
* @deprecated since version 11.0. not used anymore can be removed in future version.
161+
*/
160162
export function isAction(action: any): action is Action { // tslint:disable-line:no-any
161163
const kind = action && action.kind;
162164

0 commit comments

Comments
 (0)