Skip to content

Commit bc00218

Browse files
authored
Add types to fix deprecation warning (#227)
1 parent c3c2d40 commit bc00218

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/index.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,27 @@ class OfflineEdgeLambdaPlugin {
3434
options: {
3535
port: {
3636
usage: 'Specify the port that the server will listen on',
37-
default: 8080
37+
default: 8080,
38+
type: 'string'
3839
},
3940
cloudfrontPort: {
40-
usage: '[Deprecated] Specify the port that the server will listen on. Use --port instead'
41+
usage: '[Deprecated] Specify the port that the server will listen on. Use --port instead',
42+
type: 'string'
4143
},
4244
disableCache: {
4345
usage: 'Disables simulated cache',
44-
default: false
46+
default: false,
47+
type: 'boolean'
4548
},
4649
cacheDir: {
4750
usage: 'Specify the directory where cache file will be stored',
48-
required: false
51+
required: false,
52+
type: 'string'
4953
},
5054
fileDir: {
5155
usage: 'Specify the directory where origin requests will draw from',
52-
required: false
56+
required: false,
57+
type: 'string'
5358
}
5459
}
5560
}

0 commit comments

Comments
 (0)