Skip to content

Commit b62073d

Browse files
committed
Documentation fixes
- Object.freeze creates a readonly object that doesn't play will in TS 3.2 - Gitignore docs directory
1 parent fcc6e98 commit b62073d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#
12
# Logs
23
logs
34
*.log
@@ -59,4 +60,5 @@ dist
5960
.cache
6061

6162
.DS_Store
63+
docs
6264

lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type InvalidPostcode = {
6262
unit: null;
6363
};
6464

65-
const invalidPostcode: InvalidPostcode = Object.freeze({
65+
const invalidPostcode: InvalidPostcode = {
6666
valid: false,
6767
postcode: null,
6868
incode: null,
@@ -72,7 +72,7 @@ const invalidPostcode: InvalidPostcode = Object.freeze({
7272
subDistrict: null,
7373
sector: null,
7474
unit: null
75-
});
75+
};
7676

7777
/**
7878
* Return first elem of input is RegExpMatchArray or null if input null

0 commit comments

Comments
 (0)