Skip to content

Commit f8c83f0

Browse files
committed
Clean up docs
1 parent 529e043 commit f8c83f0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lib/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,21 @@ interface Validator {
3636
(input: string): boolean;
3737
}
3838

39+
/**
40+
* @hidden
41+
*/
3942
interface Parser {
4043
/**
4144
* @hidden
4245
*/
4346
(postcode: string): string | null;
4447
}
4548

49+
/**
50+
* Represents a valid postcode
51+
*
52+
* Note that results will be normalised (i.e. correctly formatted), including `postcode`
53+
*/
4654
type ValidPostcode = {
4755
valid: true;
4856
postcode: string;
@@ -297,6 +305,9 @@ export const parse = (postcode: string): ValidPostcode | InvalidPostcode => {
297305
export const match = (corpus: string): string[] =>
298306
corpus.match(POSTCODE_CORPUS_REGEX) || [];
299307

308+
/**
309+
* @hidden
310+
*/
300311
interface ReplaceResult {
301312
/**
302313
* List of matching postcodes found intext

0 commit comments

Comments
 (0)