Skip to content

Commit 0dc6d7a

Browse files
committed
feat(interfaces): RequireStatement
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 7a66d78 commit 0dc6d7a

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/interfaces/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ export type { default as StaticImport } from './import-static'
88
export type { default as Statement } from './statement'
99
export type { default as ExportStatement } from './statement-export'
1010
export type { default as ImportStatement } from './statement-import'
11+
export type { default as RequireStatement } from './statement-require'

src/interfaces/statement-require.ts

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* @file Interfaces - RequireStatement
3+
* @module mlly/interfaces/RequireStatement
4+
*/
5+
6+
import type Statement from './statement'
7+
8+
/**
9+
* Require statement object schema.
10+
*
11+
* @see {@link Statement}
12+
*
13+
* @extends {Statement}
14+
*/
15+
interface RequireStatement extends Statement {
16+
/**
17+
* Import names.
18+
*/
19+
imports: string[]
20+
21+
/**
22+
* Module specifier.
23+
*/
24+
specifier: NonNullable<Statement['specifier']>
25+
26+
/**
27+
* Import statement type.
28+
*/
29+
type: 'require'
30+
}
31+
32+
export type { RequireStatement as default }

0 commit comments

Comments
 (0)