Skip to content

Commit 61065dc

Browse files
committed
feature: @putout/operator-keyword: interface
1 parent 844ab42 commit 61065dc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/operator-keyword/lib/keyword.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const statements = [
3535
'throw',
3636
'of',
3737
'while',
38+
'interface',
3839
];
3940

4041
const keywords = [

packages/operator-keyword/lib/keyword.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,10 @@ test('putout: operator: isStatementKeyword: typeof', (t) => {
7878
t.ok(result);
7979
t.end();
8080
});
81+
82+
test('putout: operator: isStatementKeyword: interface', (t) => {
83+
const result = isKeyword('interface');
84+
85+
t.ok(result);
86+
t.end();
87+
});

0 commit comments

Comments
 (0)