Skip to content

Commit e15db16

Browse files
authored
Merge pull request #314 from HarperDB/fix/plugins-typos
Sync plugin API docs with names in code
2 parents 8444303 + 318e7c0 commit e15db16

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

docs/reference/components/plugins.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ As plugins are meant to be used by applications in order to implement some featu
2626

2727
As a brief overview, the general configuration options available for plugins are:
2828

29-
- `files` - `string` | `string[]` | [`FilesOptionsObject`](#interface-filesoptionsobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
29+
- `files` - `string` | `string[]` | [`FilesOptionObject`](#interface-filesoptionobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
3030
- `urlPath` - `string` - _optional_ - A base URL path to prepend to the resolved `files` entries handled by the plugin's default `EntryHandler` instance.
3131
- `timeout` - `number` - _optional_ - The timeout in milliseconds for the plugin's operations. If not specified, the system default is **30 seconds**. Plugins may override the system default themselves, but this configuration option is the highest priority and takes precedence.
3232

@@ -309,9 +309,9 @@ Returns: `string` - The directory of the application. This is the root directory
309309

310310
## Interface: `FilesOption`
311311

312-
- `string` | `string[]` | [`FilesOptionsObject`](#interface-filesoptionsobject)
312+
- `string` | `string[]` | [`FilesOptionObject`](#interface-filesoptionobject)
313313

314-
## Interface: `FilesOptionsObject`
314+
## Interface: `FilesOptionObject`
315315

316316
- `source` - `string` | `string[]` - _required_ - The glob pattern string or array of strings.
317317
- `ignore` - `string` | `string[]` - _optional_ - An array of glob patterns to exclude from matches. This is an alternative way to use negative patterns. Defaults to `[]`.
@@ -458,9 +458,9 @@ The `'add'` event is emitted when a file is created (or the watcher sees it for
458458

459459
### Event: `'addDir'`
460460

461-
- `entry` - [`AddDirEvent`](#interface-adddirevent) - The directory entry that was added.
461+
- `entry` - [`AddDirectoryEvent`](#interface-adddirectoryevent) - The directory entry that was added.
462462

463-
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirEvent` object that contains the URL path and absolute path of the directory.
463+
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirectoryEvent` object that contains the URL path and absolute path of the directory.
464464

465465
### Event: `'change'`
466466

@@ -488,9 +488,9 @@ The `'unlink'` event is emitted when a file is deleted. The event handler receiv
488488

489489
### Event: `'unlinkDir'`
490490

491-
- `entry` - [`UnlinkDirEvent`](#interface-unlinkdirevent) - The directory entry that was deleted.
491+
- `entry` - [`UnlinkDirectoryEvent`](#interface-unlinkdirectoryevent) - The directory entry that was deleted.
492492

493-
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirEvent` object that contains the URL path and absolute path of the deleted directory.
493+
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirectoryEvent` object that contains the URL path and absolute path of the deleted directory.
494494

495495
### `entryHandler.name`
496496

@@ -584,7 +584,7 @@ Event object emitted when a file is deleted.
584584

585585
A union type representing the file entry events. These events are emitted when a file is created, modified, or deleted. The `FileEntry` interface provides the file contents and other metadata.
586586

587-
### Interface: `AddDirEvent`
587+
### Interface: `AddDirectoryEvent`
588588

589589
Extends [`EntryEvent`](#interface-entryevent)
590590

@@ -593,7 +593,7 @@ Extends [`EntryEvent`](#interface-entryevent)
593593

594594
Event object emitted when a directory is created (or the watcher sees it for the first time).
595595

596-
### Interface: `UnlinkDirEvent`
596+
### Interface: `UnlinkDirectoryEvent`
597597

598598
Extends [`EntryEvent`](#interface-entryevent)
599599

@@ -604,7 +604,7 @@ Event object emitted when a directory is deleted.
604604

605605
### Interface: `DirectoryEntryEvent`
606606

607-
- `AddDirEvent` | `UnlinkDirEvent`
607+
- `AddDirectoryEvent` | `UnlinkDirectoryEvent`
608608

609609
A union type representing the directory entry events. There are no change events for directories since they are not modified in the same way as files.
610610

versioned_docs/version-4.6/reference/components/plugins.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ As plugins are meant to be used by applications in order to implement some featu
2626

2727
As a brief overview, the general configuration options available for plugins are:
2828

29-
- `files` - `string` | `string[]` | [`FilesOptionsObject`](#interface-filesoptionsobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
29+
- `files` - `string` | `string[]` | [`FilesOptionObject`](#interface-filesoptionobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
3030
- `urlPath` - `string` - _optional_ - A base URL path to prepend to the resolved `files` entries handled by the plugin's default `EntryHandler` instance.
3131
- `timeout` - `number` - _optional_ - The timeout in milliseconds for the plugin's operations. If not specified, the system default is **30 seconds**. Plugins may override the system default themselves, but this configuration option is the highest priority and takes precedence.
3232

@@ -125,7 +125,7 @@ export function handleApplication(scope) {
125125
switch (entry.eventType) {
126126
case 'add':
127127
case 'change':
128-
// Store // Update the file contents in memory for serving
128+
// Store / Update the file contents in memory for serving
129129
staticFiles.set(entry.urlPath, entry.contents);
130130
break;
131131
case 'unlink':
@@ -309,9 +309,9 @@ Returns: `string` - The directory of the application. This is the root directory
309309

310310
## Interface: `FilesOption`
311311

312-
- `string` | `string[]` | [`FilesOptionsObject`](#interface-filesoptionsobject)
312+
- `string` | `string[]` | [`FilesOptionObject`](#interface-filesoptionobject)
313313

314-
## Interface: `FilesOptionsObject`
314+
## Interface: `FilesOptionObject`
315315

316316
- `source` - `string` | `string[]` - _required_ - The glob pattern string or array of strings.
317317
- `ignore` - `string` | `string[]` - _optional_ - An array of glob patterns to exclude from matches. This is an alternative way to use negative patterns. Defaults to `[]`.
@@ -458,9 +458,9 @@ The `'add'` event is emitted when a file is created (or the watcher sees it for
458458

459459
### Event: `'addDir'`
460460

461-
- `entry` - [`AddDirEvent`](#interface-adddirevent) - The directory entry that was added.
461+
- `entry` - [`AddDirectoryEvent`](#interface-adddirectoryevent) - The directory entry that was added.
462462

463-
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirEvent` object that contains the URL path and absolute path of the directory.
463+
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirectoryEvent` object that contains the URL path and absolute path of the directory.
464464

465465
### Event: `'change'`
466466

@@ -488,9 +488,9 @@ The `'unlink'` event is emitted when a file is deleted. The event handler receiv
488488

489489
### Event: `'unlinkDir'`
490490

491-
- `entry` - [`UnlinkDirEvent`](#interface-unlinkdirevent) - The directory entry that was deleted.
491+
- `entry` - [`UnlinkDirectoryEvent`](#interface-unlinkdirectoryevent) - The directory entry that was deleted.
492492

493-
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirEvent` object that contains the URL path and absolute path of the deleted directory.
493+
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirectoryEvent` object that contains the URL path and absolute path of the deleted directory.
494494

495495
### `entryHandler.name`
496496

@@ -584,7 +584,7 @@ Event object emitted when a file is deleted.
584584

585585
A union type representing the file entry events. These events are emitted when a file is created, modified, or deleted. The `FileEntry` interface provides the file contents and other metadata.
586586

587-
### Interface: `AddDirEvent`
587+
### Interface: `AddDirectoryEvent`
588588

589589
Extends [`EntryEvent`](#interface-entryevent)
590590

@@ -593,7 +593,7 @@ Extends [`EntryEvent`](#interface-entryevent)
593593

594594
Event object emitted when a directory is created (or the watcher sees it for the first time).
595595

596-
### Interface: `UnlinkDirEvent`
596+
### Interface: `UnlinkDirectoryEvent`
597597

598598
Extends [`EntryEvent`](#interface-entryevent)
599599

@@ -604,7 +604,7 @@ Event object emitted when a directory is deleted.
604604

605605
### Interface: `DirectoryEntryEvent`
606606

607-
- `AddDirEvent` | `UnlinkDirEvent`
607+
- `AddDirectoryEvent` | `UnlinkDirectoryEvent`
608608

609609
A union type representing the directory entry events. There are no change events for directories since they are not modified in the same way as files.
610610

0 commit comments

Comments
 (0)