Skip to content

Commit 077a6ab

Browse files
committed
feat(enums): SpecifierKind
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 734edd2 commit 077a6ab

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* @file Type Tests - SpecifierKind
3+
* @module mlly/enums/tests/unit-d/SpecifierKind
4+
*/
5+
6+
import type TestSubject from '../kind-specifier'
7+
8+
describe('unit-d:enums/SpecifierKind', () => {
9+
it('should match [ABSOLUTE = "absolute"]', () => {
10+
expectTypeOf<typeof TestSubject>()
11+
.toHaveProperty('ABSOLUTE')
12+
.toMatchTypeOf<'absolute'>()
13+
})
14+
15+
it('should match [BARE = "bare"]', () => {
16+
expectTypeOf<typeof TestSubject>()
17+
.toHaveProperty('BARE')
18+
.toMatchTypeOf<'bare'>()
19+
})
20+
21+
it('should match [RELATIVE = "relative"]', () => {
22+
expectTypeOf<typeof TestSubject>()
23+
.toHaveProperty('RELATIVE')
24+
.toMatchTypeOf<'relative'>()
25+
})
26+
})

src/enums/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
export { default as AssertType } from './assert-type'
77
export { default as Format } from './format'
8+
export { default as SpecifierKind } from './kind-specifier'
89
export { default as SpecifierSyntaxKind } from './kind-specifier-syntax'
910
export { default as StatementKind } from './kind-statement'
1011
export { default as StatementSyntaxKind } from './kind-statement-syntax'

src/enums/kind-specifier.ts

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @file Enums - SpecifierKind
3+
* @module mlly/enums/SpecifierKind
4+
*/
5+
6+
/**
7+
* Types of module specifiers.
8+
*
9+
* @enum {Lowercase<string>}
10+
*/
11+
enum SpecifierKind {
12+
ABSOLUTE = 'absolute',
13+
BARE = 'bare',
14+
RELATIVE = 'relative'
15+
}
16+
17+
export default SpecifierKind

0 commit comments

Comments
 (0)