We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df5e4f6 commit dc3e67cCopy full SHA for dc3e67c
src/language/__tests__/kind-test.ts
@@ -0,0 +1,29 @@
1
+/* eslint-disable @typescript-eslint/no-unused-expressions */
2
+import { describe, it } from 'mocha';
3
+
4
+import { Kind } from '../index.js';
5
6
+describe('Kind', () => {
7
+ it('is a term level namespace with term level enum members', () => {
8
+ const a: Kind.NAME = Kind.NAME;
9
+ a;
10
+ const b: Kind = Kind.NAME;
11
+ b;
12
+ const c: Kind = Kind.ARGUMENT;
13
+ c;
14
+ });
15
+ it('is a type level namespace with type level enum members', () => {
16
+ // @ts-expect-error
17
+ const a: Kind.NAME = 'bad';
18
19
+ const b: Kind.NAME = 'Name';
20
21
22
+ const c: Kind = 'bad';
23
24
+ const d: Kind = 'Name';
25
+ d;
26
+ const e: Kind = 'Argument';
27
+ e;
28
29
+});
0 commit comments