Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 authored Aug 11, 2023
1 parent a58b05a commit 4a48d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ A factory is a user implemented object which must expose the following three met
Must yield a new resource or reject if the resource could not be created.

### validate(resource: T) : Promise<void>
Must yield if the resource is confirmed to be working or reject if the resource is found to be broken.
Must resolve if the resource is confirmed to be working or reject if the resource is found to be broken. If you don't want to validate resources then implement an empty function.

### destroy(resource: T) : Promise<void>
Must destroy the supplied resource or reject if the resource could not be destroyed.
Expand Down

0 comments on commit 4a48d85

Please sign in to comment.