We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f405dfe commit 7adff78Copy full SHA for 7adff78
index.d.ts
@@ -0,0 +1,18 @@
1
+// Type definitions for docker-file-parser 1.0
2
+
3
+export interface CommandEntry {
4
+ name: string;
5
+ args: string[];
6
+ lineno: number;
7
+ raw: string;
8
+ error?: string;
9
+}
10
11
+export interface ParseOptions {
12
+ includeComments: boolean;
13
14
15
+export function parse(
16
+ contents: string,
17
+ options?: ParseOptions
18
+): CommandEntry[];
package.json
@@ -22,6 +22,7 @@
22
}
23
],
24
"main": "index.js",
25
+ "types": "index.d.ts",
26
"scripts": {
27
"test": "set -e; for t in test/test_*.js; do node $t; done"
28
},
0 commit comments